22 December 2009, 11:52 | #1 |
Moderator
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! |
22 December 2009, 12:12 | #2 |
HOL/FTP busy bee
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 31,518
|
Use the individual shell commands, but replace > with >>
|
22 December 2009, 13:52 | #3 |
Moderator
Join Date: Jun 2001
Location: I'm behind you!
Posts: 3,763
|
TCD, shell Guru master.
|
22 December 2009, 14:03 | #4 |
HOL/FTP busy bee
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 31,518
|
You're welcome
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Clear background color for Shell window- Shell-StartUp | fc.studio | support.Apps | 13 | 25 March 2022 18:52 |
SnoopDOS with Output File Limit | tygre | support.Apps | 6 | 12 December 2015 16:54 |
WinUAE Crash with .dmp log file ??? | dh2k | New to Emulation or Amiga scene | 4 | 06 September 2008 12:11 |
Capture crash data in log file | DDNI | support.Apps | 8 | 19 February 2007 20:17 |
|
|