Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] stdin/stderr redirection under Solaris



Steve Smith wrote:

> Bourne, Korn and csh are usually on Solaris.  I think you're
> trying to do this from the command line, so what shell you
> get as a login shell is determined by your login.  That's
> what echo $SHELL will tell you.

I didn't realize that the login shell was important, I thought I could 
switch to any other shell after, no?

If not then my shell is /bin/csh

> I wrote a simple test script in bourne shell.  This sends
> the string 'std err' to stderr and 'std out' to stdout.
> #!/bin/sh
> echo std err 1>&2
> echo std out
> 
> and for csh/tcsh did this:
> ( t.sh | cat > f1) |& cat > f2

I'll try this and see if it works!

Thanks,

Jc


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links