1755694 Members
3400 Online
108837 Solutions
New Discussion юеВ

at output redirection

 
Franky Leeuwerck
Frequent Advisor

at output redirection

Hello,

I have a shell script a in which I launch another script b with the command
at -f filenameOfb now

How can I prevent the system from sending all output from the other script as an email to the user ?
I don't want to add redirection statements at the end of each script statement in b.

Thanks,

Franky Leeuwerck
2 REPLIES 2
Franky Leeuwerck
Frequent Advisor

Re: at output redirection

Initialy my question was wrongly submitted in the networking category.

I got the solution from Andreas Voss :

Hi,

to generally redirect all output withiun a script add a line at the top ie:

exec >/tmp/logfile 2>&1

this will redirect all stdout/stderr to /tmp/logfile

Regards

Andreas Voss
John Palmer
Honored Contributor

Re: at output redirection

Hi,

One possibility is to use a different form of at...

at