![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Full Command Logging? | humbletech99 | Security | 1 | 01-29-2009 11:08 AM |
| shell command logging | minkie | SUN Solaris | 2 | 12-04-2008 02:37 PM |
| Command Logging in SCO | brian_g | UNIX for Dummies Questions & Answers | 2 | 04-13-2006 06:46 PM |
| What is command for logging? | dtamminx | UNIX for Dummies Questions & Answers | 3 | 02-11-2003 06:58 PM |
| SSH and command logging | penguin-friend | UNIX for Advanced & Expert Users | 2 | 02-25-2002 06:11 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
awk command-logging
hi folks,
In the following code, logfile remains empty. Code:
log_file="/u/Sc/prav.log.$mon$day"
ps -ef | grep "myprocess"| awk -v logfile=$log_file '{
system("date >> logfile")
}'
thanks in advance! |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|