|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Specify filename to save output of script
Hi,
How do I specify the file name to which the output of my script should be saved to, without giving it on the command line. I don't want to do: ./test.ksh > test_output Can I specify the file name inside my script? Thanks. -Yogesh. |
|
#2
|
|||
|
|||
|
Use:
exec > test_output |
|
#3
|
|||
|
|||
|
... and to get your stderr:
exec >test_output 2>&1 |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Specify filename to save output of script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|