Search Results

Search: Posts Made By: sumitsks
1,213
Posted By sumitsks
:182,361d181 It will delete 181 lines...
:182,361d181


It will delete 181 lines from 361th line and place the cursor at 361th line
3,963
Posted By sumitsks
Or you try this start_p2 & while [ $(ps...
Or you try this

start_p2 &
while [ $(ps -fe | grep [s]tart_p3 | wc -l) -le 1 ] ; then
print - "process not started yet"
sleep 1
done
print - "process start_p3 has started"
2,933
Posted By sumitsks
That's correct, because your script not able to...
That's correct, because your script not able to find the below cmd
ec2-describe-instances --> What is this cmd for?
I think you have to call it with full path... or you may have to define it in...
2,933
Posted By sumitsks
I think you have to provide the code for both...
I think you have to provide the code for both scripts here.. so that we can know what cmds you are trying to execute
2,933
Posted By sumitsks
Use this. 10 05 * * * /directory/Script.sh >...
Use this.

10 05 * * * /directory/Script.sh > /directory/log/output.log 2>&1

Read this to get the format for crontab
Cron format (http://www.nncron.ru/help/EN/working/cron-format.htm)
2,933
Posted By sumitsks
Try this and see if you get some error in your...
Try this and see if you get some error in your output.log file.

0 10 * * * /directory/Script.sh > /directory/log/output.log 2>&1
3,068
Posted By sumitsks
Try this FILELIST=$(ssh -n...
Try this

FILELIST=$(ssh -n $SOURCE_SERVER_NAME find $SOURCE_FOLDER_NAME -type f -mtime +$ARCHIVE_DELAY < /dev/null | grep "$SOURCE_FOLDER_NAME/$LOAD_FILE_NAME" )
2,862
Posted By sumitsks
I think you can check/verify the status of step 3...
I think you can check/verify the status of step 3 and if the return status of step 3 is not successful you can re-run it along with counter re-run variable.
2,895
Posted By sumitsks
you can try this su -l oracle -c "export...
you can try this


su -l oracle -c "export ORACLE_SID=$11;export MYVAR1=Stomper;export MYVAR2=Duffy; echo \`whoami\` >/tmp/who.txt;echo $1 >/tmp/Arg_name.txt;echo $ORACLE_SID...
1,609
Posted By sumitsks
Try this grep -l -m 2 -w "\<base\>"...
Try this

grep -l -m 2 -w "\<base\>" *
2,356
Posted By sumitsks
Can you please provide sample data?
Can you please provide sample data?
1,520
Posted By sumitsks
-c option will give counts for line which have...
-c option will give counts for line which have match string, it is not counting the no of occurrence in each line.
3,523
Posted By sumitsks
Yes you are right..
Yes you are right..
2,965
Posted By sumitsks
Yes, it has the timestamp in the below format. ...
Yes, it has the timestamp in the below format.

2012-02-12 07:01:04 some string....
2,965
Posted By sumitsks
How to read log files from last read
Hi
i am looking a way to look at a log file(log.txt) from the last time I've read it.
However after some days the main log file(log.txt) is rename to (log.txt.1).
So now i will have two log files...
3,373
Posted By sumitsks
here the simple code to check where file exist on...
here the simple code to check where file exist on server or not

file_needs_to_search="abc,txt"
local_dir="/tmp"
ftp_dir="/tmp/asd"
ftp -n -i $HostName << EOF
quote USER...
1,772
Posted By sumitsks
by doing this way my concern still exist, means...
by doing this way my concern still exist, means still it is taking more execution time.
Is there any other way by which we can run some cmds on different server(box) without using ssh or in...
1,772
Posted By sumitsks
Thanks for the reply. however i am not getting...
Thanks for the reply.
however i am not getting the output of the cmds written in the cmds.txt.
eg.
$cat cmds.txt
ls -lrt | tail
hostname
pwd

here is the cmd wothout -f
$ssh serevrA...
1,772
Posted By sumitsks
How to run cmd from Server A on Server B
Hi,

I need some help to improve the execution time for my script.

Here is the case.
i have one Test1 script on server 'A'.
This script Test1 writes some cmd in file cmds.txt
Now i am...
Showing results 1 to 19 of 19

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