Search Results

Search: Posts Made By: hanyou.lin
2,336
Posted By hanyou.lin
Sorry, not stuck, What i meant is I need to have...
Sorry, not stuck, What i meant is I need to have this condition whereby if the file hasn't been updating the past 5 mins, then i'll do something else

Thanks
2,336
Posted By hanyou.lin
Hi Ygor, can u show me the code in linux shell...
Hi Ygor, can u show me the code in linux shell script? I need to grep the time of a file and check to see if the file has been stuck for more then 5 minutes
2,336
Posted By hanyou.lin
Thanks Ygor, but when i look at the coding, it...
Thanks Ygor, but when i look at the coding, it says "perl" at the starting. Is this a perl script or linux?
2,336
Posted By hanyou.lin
Comparing Time
Hi guys,
Is there a way whereby i can grep the last updated time of a log file and compare it with the server time?

Thanks
7,116
Posted By hanyou.lin
Substitute for echo
Hi guys,
this there another function i can to print out a line besides echo?
Forum: Linux 09-16-2008
3,262
Posted By hanyou.lin
Substitute for echo
Hi guys,
Is there another function i could use to print out an output beside using echo?
2,715
Posted By hanyou.lin
Hi era. I wanna thank you for your help but...
Hi era. I wanna thank you for your help but honestly as you can see, i'm quite new to linux. And right now this script is almost done and i do not wish to make anymore changes so as to prevent...
2,715
Posted By hanyou.lin
Thanks again . And 1 more thing to ask for...
Thanks again .

And 1 more thing to ask for help.

how do i do a lesser then 0 and greater then 100?

if [ "$op" -gt 100 ]



echo "Data is Awaiting Upload!"

how do i add the value of...
2,715
Posted By hanyou.lin
Thanks alot man, it works.
Thanks alot man, it works.
2,715
Posted By hanyou.lin
Need help with script
Hi guys. i have this 2 seperate script. Is there any way i can put them together in a single script?

the code return from this sql query is:
count
-------
0
(1 row)


su -l postgres...
2,623
Posted By hanyou.lin
op=`awk 'NR==3{print}' x` if ["$op" -gt 0];...
op=`awk 'NR==3{print}' x`

if ["$op" -gt 0]; then
echo "data is running smoothly"
exit 0
fi

echo "Data Awaiting Upload!"

exit 2

So this is how the whole thing looks like. But im...
2,623
Posted By hanyou.lin
oh sorry. ok the x2 file looks like this. ...
oh sorry. ok the x2 file looks like this.

count
--------
0

my desired output is for the script to grep the 3rd line which is an integer and check whether if its bigger then 0. Then print out...
2,623
Posted By hanyou.lin
Need help with grep command
Hi guys, i wondering with any1 could help me with this.
I have this script will i need to "grep" an integer form a file x2. If the value is 0 then it's ok. But anything greater then 0, i'll ask the...
Showing results 1 to 13 of 13

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