Search Results

Search: Posts Made By: praveen_reddy
1,141
Posted By praveen_reddy
there are three commands and not in the correct...
there are three commands and not in the correct order ..

-d /globall/okl/codelib/inqload ( may be syntax error)
cd /globall/okl/codelib/inqload/old
unzip REL0003.zip

// checks if the...
37,294
Posted By praveen_reddy
[[ -s file ]] || echo "File Doesn't Exist" |...
[[ -s file ]] || echo "File Doesn't Exist" | mailx -s "FileNotFound" abc@xyz.com
22,487
Posted By praveen_reddy
write your commands in script file script.sh...
write your commands in script file

script.sh
=======
cmds
....

edit crontab file by using command
crontab -e
the above command open crontab file
enter the following code in opened file
...
4,209
Posted By praveen_reddy
you can use a C like syntax like for integers ...
you can use a C like syntax like for integers

if (( $i == 1 ))
then
.............
fi
22,487
Posted By praveen_reddy
use crontab edit crontab file (crontab -e) as...
use crontab
edit crontab file (crontab -e) as below
@reboot <joblist>
joblist contains the jobs you have to run during start-up
2,824
Posted By praveen_reddy
to run one command on remote server ssh...
to run one command on remote server
ssh user@hostname 'cmd'
to run multiple commands on remote server
ssh user@hostname 'cmd1;cmd2;....;cmdn'
in your case it would go like this
ssh user@hostname...
13,048
Posted By praveen_reddy
check the status of rsync command using "$?" if...
check the status of rsync command using "$?" if it return 0 .. rsync is success otherwise it's failed
4,361
Posted By praveen_reddy
sort -k2n data.txt
sort -k2n data.txt
13,048
Posted By praveen_reddy
try this.. #!/bin/bash if [ -e...
try this..
#!/bin/bash
if [ -e /datalvm/.synclock ]
then
rsync -aWv --stats progress --delete --ignore-errors /datalvm/UK_REGIONAL_PRESS/PUB/NORTHCLIFFE/...
29,989
Posted By praveen_reddy
echo $ips | tr -s " " "\n"
echo $ips | tr -s " " "\n"
35,611
Posted By praveen_reddy
grep '[[:punct:]]' trtest.txt Code tags for code...
grep '[[:punct:]]' trtest.txt Code tags for code please.

---------- Post updated at 03:21 PM ---------- Previous update was at 03:18 PM ----------

grep '[[:punct:]]' <filename>
7,321
Posted By praveen_reddy
sample file with filenames to be tar-ed aa.txt...
sample file with filenames to be tar-ed
aa.txt bb.txt cc.txt
tar -cvf tarname.tar `cat path/to/file`
7,665
Posted By praveen_reddy
if you want to attach file .. you must have...
if you want to attach file .. you must have uuencode or mutt installed.
7,665
Posted By praveen_reddy
you can send the file as body of the Mail as...
you can send the file as body of the Mail as follows..
mailx -s "TestMail" abc@xyz.com < "path to input File"
Forum: Red Hat 08-01-2012
9,145
Posted By praveen_reddy
i too got this error ... but sending mail was...
i too got this error ... but sending mail was successful
i have code like following
subject="my log"
mutt -s $subject xyz@abc.com < /dev/null

i got rid this error after removing white space in...
2,273
Posted By praveen_reddy
pwd |awk ' BEGIN { FS="/"} {print $NF}'
pwd |awk ' BEGIN { FS="/"} {print $NF}'
Showing results 1 to 16 of 16

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