Search Results

Search: Posts Made By: chococrunch6
1,120
Posted By chococrunch6
Running scripts from different server
Hi,

I need a script (ksh) on ServerAdmin that will run an archive scripts from different several Servers through ssh. The problem is that how can i switch user when before running the archive...
2,161
Posted By chococrunch6
can you please explain what does this awk code...
can you please explain what does this awk code do?


$ awk 'match($0, D){ print $0 > substr ($0,RSTART,RLENGTH)}' D=$domainlist *
2,161
Posted By chococrunch6
thanks for clarification RudiC...
thanks for clarification RudiC (https://www.unix.com/members/302122047.html).

Actually there are only 6 log files which covers the whole day of logs( sometimes a combination of *gz and *Z files or ...
2,161
Posted By chococrunch6
Hi RudiC...
Hi RudiC (https://www.unix.com/members/302122047.html),

Thanks for your reply, i rephrase the problem above, i hope it is clear this time. Kindly help.
2,161
Posted By chococrunch6
Help on Loops to Grep logs
Hi,

Thanks RudiC (https://www.unix.com/members/302122047.html) for bringing up the order of the timestamp. Yes it does matter. Please help.

Current Setup:
Logs were rotated every 4hrs and they...
14,672
Posted By chococrunch6
Hi Corona688, spacebar and binlib, I want to...
Hi Corona688, spacebar and binlib,

I want to thank all of you for your inputs. I made some modification on the scripts and it is now working, i just create a permanent directory to the...
14,672
Posted By chococrunch6
i've tried your script: /usr/bin/sftp -b -...
i've tried your script:

/usr/bin/sftp -b - -v -o BatchMode=yes <id>@<ip address> <<ENDSFTP
mkdir test
cd /test
pwd
quit
ENDSFTP
rc=$?
if [[ $rc != 0 ]] then
echo "***Error...
14,672
Posted By chococrunch6
Hi spacebar, Thank you for your response,...
Hi spacebar,

Thank you for your response, i've tried it and it still gives me an error:

$ ./test3.txt
No such file or directory (-).
***Error occurred...255 2013-01-13-20.51.19

Regards,...
14,672
Posted By chococrunch6
hi corona688, here's the versions of the...
hi corona688,

here's the versions of the servers i want to run the script.

SunOS 5.10 Generic_144488-11 sun4v sparc SUNW,SPARC-Enterprise-T5220
SunOS 5.9 Generic_122300-61 sun4u sparc...
14,672
Posted By chococrunch6
hello, Thank you.. but i already tried with...
hello,

Thank you.. but i already tried with "-" and still not working. Please correct me if I'm wrong with the commands i use

script:
cat > $filebatch << __EOF__

-mkdir $current_date...
14,672
Posted By chococrunch6
Hi binlib, Thanks for your reply. can you...
Hi binlib,

Thanks for your reply. can you advise how can i terminate the error using the "mkdir" command?

Regards,
Choco
14,672
Posted By chococrunch6
Help on commands in sftp using BatchFile
Hi,

The script didn't continue as "20130109" folder is already created on the destination server. Please help.

Entry in script:

cat > $filebatch << __EOF__
mkdir $current_date
mkdir...
4,816
Posted By chococrunch6
i tried your command and it return this error: ...
i tried your command and it return this error:

command:
find . -name "*c1*2012-12-28*" -type f | awk ' { sub(/^\.\//,"",$0); print "put " $0; } ' > sftp_batch.cntrl

error:
awk: syntax error...
4,816
Posted By chococrunch6
thank you! another newbie question.. what...
thank you!

another newbie question.. what does "$0" for?

Regards,
Choco
4,816
Posted By chococrunch6
Hi bipinajith, Thanks for your response, ...
Hi bipinajith,

Thanks for your response,

actually i used the commands below to do the transfer:

/usr/bin/scp -q $<dir_source> <id>@<ip address>:$<dir_destination>


im having problem...
1,968
Posted By chococrunch6
Help with ksh script to list, then cp files from a user input date range
Hi,

I'm quite new to ksh scripting, can someone help me with this.

Requirements:

I need to create a script that list the files from a user input date range.
e. g. format of file:
...
4,816
Posted By chococrunch6
Help with ksh script to list files, cp it to another UNIX server
Hi,

I'm quite new to ksh scripting, can someone help me with this.

Requirements:

I need to create a script that list the files from a user input date range.
e. g. format of file:
...
Showing results 1 to 17 of 17

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