This executes the date command via shell script and logs it to the specified file with current pid.
#!/bin/bash
LOG=$$.log
exec > $LOG 2>&1
date
stdoutredirect stdout/stderr within bash scriptSubmitted by sandip on Fri, 06/22/2012 - 08:04This executes the date command via shell script and logs it to the specified file with current pid. #!/bin/bash »
|
User loginRecent blog posts
Who's onlineThere are currently 0 users and 13 guests online.
|