All Questions
Tagged with csh io-redirection
7
questions
0
votes
0
answers
137
views
Why do I get "Not a terminal" error during output redirection in csh?
Background:
We have put some command outputs (both stdout and stderr) into the same file under the csh shell.
Question:
Why do we get the "Not a terminal" message in the following ...
0
votes
2
answers
697
views
Unable to redirect standard error of openmpi in csh to file
I have read this question and answer - Redirect stderr to stdout but nothing seems to work to capture the error of a software called OpenMPI on Ubuntu 16.04 LTS.
I have the OpenMPI commands in a ...
2
votes
1
answer
2k
views
What kind of redirection is >>&?
I'm looking at a cron file that has the following line:
35 0 * * * /bin/csh -c "/home/abc/.cshrc;/home/abc/appTools/bin/xxx.pl >>& /home/abc/appTools/log/xxx.cronlog"
Is this another form ...
2
votes
3
answers
4k
views
CSH and all output (with errors) to file
I need save all output from compilation to file. I have many errors undefined reference and I want see all of these errors.
I try makeall >& out, but in file out aren't any of error undefined ...
15
votes
2
answers
18k
views
Is it possible to send a HEREDOC over ssh to a remote host from inside a script running locally?
I essentially want to run a script on machine A which will SSH into machine B, execute commands on B, and return the output to machine A.
So I am creating a csh script to do this, hopefully, if it's ...
256
votes
3
answers
229k
views
Difference between 2>&-, 2>/dev/null, |&, &>/dev/null and >/dev/null 2>&1
Just looking for the difference between
2>&-
2>/dev/null
|&
&>/dev/null
>/dev/null 2>&1
and their portability with non-Bourne shells like tcsh, mksh, etc.
15
votes
4
answers
40k
views
stderr redirection not working in csh
I run the following command:
pkg_add emacs-23.4,2.tbz 2> output.log
The output still displays in the terminal. When I press ↑, I get
pkg_add emacs-23.4,2.tbz 2 > output.log
with a space ...