English Amiga Board


Go Back   English Amiga Board > Support > support.Apps

 
 
Thread Tools
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  
Old 22 December 2009, 12:12   #2
TCD
Registered User

TCD's Avatar
 
Join Date: Sep 2006
Location: Germany
Age: 40
Posts: 24,012
Use the individual shell commands, but replace > with >>
TCD is offline  
Old 22 December 2009, 13:52   #3
Bloodwych
Moderator

Bloodwych's Avatar
 
Join Date: Jun 2001
Location: I'm behind you!
Posts: 3,763
TCD, shell Guru master.
Bloodwych is offline  
Old 22 December 2009, 14:03   #4
TCD
Registered User

TCD's Avatar
 
Join Date: Sep 2006
Location: Germany
Age: 40
Posts: 24,012
You're welcome
TCD is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
SnoopDOS with Output File Limit tygre support.Apps 6 12 December 2015 16:54
Clear background color for Shell window- Shell-StartUp fc.studio support.Apps 12 29 December 2009 14:21
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:28.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.06428 seconds with 12 queries