Link to home
Start Free TrialLog in
Avatar of kalmen
kalmen

asked on

Shell Script - Need to create a log file.

Hello,

I wrote a shell script that backs up three servers on one backup tape. My problem is that I am trying to output everything I see on the screen to a text file which would be my log file.

I tried using:
ufsdump 0ucf /dev/rmt/0n / >> bak20050701.log

But it doesn't write anything and the output comes out on the screen (when testing).

What am I missing?
ASKER CERTIFIED SOLUTION
Avatar of neteducation
neteducation

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kalmen
kalmen

ASKER

That worked. Thanks. It makes sense now.