Logo 
Search:

Unix / Linux / Ubuntu Answers

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds
  on Dec 03 In Unix / Linux / Ubuntu Category.

  
Question Answered By: Adah Miller   on Dec 03

You could do something like this:

First copy stderr to stdout, then use tee to copy stdout to a file:

yourscript.sh 2>&1 |tee /tmp/out.log

Also remember that your startup script will run as root and that the
$PATH may not have been fully set-up at run time. Any file references
should use their full path.

Share: 

 

This Question has 10 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on ubuntu startup scripts Or get search suggestion and latest updates.


Tagged: