Search Results

Search: Posts Made By: maverick72
2,554
Posted By maverick72
You will probably need to put a little more...
You will probably need to put a little more details into your post.

-OS
-Shell script? Language?
-Multiple backup jobs of the same type or different type?

Did you try to make a script...
1,363
Posted By maverick72
That is why I always try with -print before going...
That is why I always try with -print before going on an rm rampage :D And try as much as possible to give the complete path and not just / (yeah I know sometimes it's not possible). I have a friend...
2,128
Posted By maverick72
Post the fifth line of your script. Can you...
Post the fifth line of your script.

Can you pull out the version of your ksh and let us know which operating system you are using :)

I've tried your script (with the [] mod and it works on my...
1,860
Posted By maverick72
You could do something like this: while...
You could do something like this:


while read f; do
echo "something, pls check" | gammu --sendsms TEXT $f
done <tel.txt
3,426
Posted By maverick72
ps -ef | awk 'NR > 1 {split($7, a,":"); if ( a[1]...
ps -ef | awk 'NR > 1 {split($7, a,":"); if ( a[1] > 24 ) print a[1]}'

$7 may not be your field record for the TIME value. Depending on your ps output you will need to change this.
1,205
Posted By maverick72
First block refers to adding a ssh key, setting...
First block refers to adding a ssh key, setting the logname variable and copying the know_host file while removing the localhost info.

man ssh-add will give you the infos you need.

Second block...
1,266
Posted By maverick72
What is ==2 doing == 2 is matching the result...
What is ==2 doing
== 2 is matching the result of the split. Hes doing 2 things on one line (like he should)

Think of like like this:

split (blablabla)
if split result equals 2

What is...
11,737
Posted By maverick72
This should do the trick. #!/bin/bash ...
This should do the trick.

#!/bin/bash

CURRENT_TIME=$(date +%H%M)

if [ $CURRENT_TIME -lt 1800 ]
then
echo "Continue"
else
echo "Quit"
fi
Showing results 1 to 8 of 8

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