Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Feb 2003 23:10:55 +0100
From:      Per olof Ljungmark <peo@intersonic.se>
To:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   catch output from sh -xv to a file
Message-ID:  <3E500C6F.2030805@intersonic.se>

next in thread | raw e-mail | index | archive | help
Need advice on how to modify first line of shell script so that script 
can run normally (as called from another program, not from the command 
line) and write debugging output to a file like:

#!/bin/sh
echo DEFANGED.1007
exit
#!/bin/sh -xv <pipe stuff to file>

Thanks,

Per olof


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E500C6F.2030805>