Search Results

Search: Posts Made By: eric_wong_ch
2,775
Posted By eric_wong_ch
solved~~ thx 4 quick response^^:b:
solved~~
thx 4 quick response^^:b:
2,775
Posted By eric_wong_ch
redirection problem
hi all,

how to redirect the stdout msg in command line and file at the same time?

e.g
i got the script named test.sh, content as following:

#!/bin/sh
echo "111"

when i run the script...
Forum: Linux 10-15-2007
15,965
Posted By eric_wong_ch
my root a/c umask is 0022 thz
my root a/c umask is 0022
thz
Forum: Linux 10-14-2007
15,965
Posted By eric_wong_ch
dos2unix permission problem
Hi All,

I want to use the command "dos2unix" to format the file line break from win to unix,
but after changing the file permission has been change to 600.
how can i keep the original permisson...
4,889
Posted By eric_wong_ch
problem solved isRunning=`ps -ef | grep -v...
problem solved

isRunning=`ps -ef | grep -v $0 | grep -v grep | grep $1 | wc -l`

should be skip the monitoring script itself by "grep $0":D
4,889
Posted By eric_wong_ch
sure~~ command: ps -ef | grep nonstop.pl ...
sure~~

command: ps -ef | grep nonstop.pl
root 6565 5858 99 15:27 pts/7 00:00:33 perl nonstop.pl
root 6587 5900 0 15:28 pts/9 00:00:00 grep nonstop.pl
4,889
Posted By eric_wong_ch
[Solved] process monitoring
hi all,

i would like to write the shell script to monitoring the processing, but if i passing the parameter the number of process is incorrect
how to slove it? many thx

got the correct number...
3,263
Posted By eric_wong_ch
Remove out date logs
hi all,

i would like to write the shell script to remove the out-dated log
my log file name will be like this:
access_20050101.log
access_20050102.log
.
.
.
access_20071007.log...
6,569
Posted By eric_wong_ch
hi Radoulov, Thank you for your kindly...
hi Radoulov,

Thank you for your kindly reply^^:b:

i would like to add the function to archive the log daily, can i do it like this?
but is not working, is it the "IF" statement is out of the...
6,569
Posted By eric_wong_ch
Real time log file redirect
Hi all,

i would like to write the shell script program, it can monitor the access_log "real time"

when the access_log writing the line contain "abcdef" the program will be "COPY" this line into...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 07:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy