View Single Post
Old 22 December 2009, 11:52   #1
Bloodwych
Moderator

Bloodwych's Avatar
 
Join Date: Jun 2001
Location: I'm behind you!
Posts: 3,763
Shell output to log file

I'm trying to divert screen output to a log file when executing scripts, so if anything goes wrong I have a clue about what caused it.

I don't have my trusty AmigaDOS 3 manual handy at the moment, so hoping someone here can enlighten me.

I've tried adding ">DH0:T/log.readme" to both the execute command that runs the script, and the individual shell commands in the script, but still can't get anything in the output file.

In case one it remains blank and doesn't report errors; case 2 it doesn't append the file, but replaces it on each shell command.

How do I get the output to be sent to a log file, and if required the screen at the same time?

Thanks Shell Guru's!
Bloodwych is offline  
AdSense AdSense  
 
Page generated in 0.08036 seconds with 9 queries