Hi guys,
I just wanna remove the last instance (*) of value :
the original value is :
*generic.sh*5*
I have tried :
echo "*generic.sh*5*" | sed -e 's/\*//'
But it didnt work, any idea ??
Thanks,
Hi guys,
I would like to run my script between time 12.00-17.00
The script could be like this
while [[ "$(date +%H%M)" -ge "1200" ]] && [[ "$(date +%H%M)" -le "1700" ]]
do
check directory dir
for file in *20061017
do
if $file hasnt loaded
load.ksh $file...
Hi guys,
I need help to run my script from particular point,
at the moment my script contain children scripts and looks like this :
#!/bin/ksh
Script1
if[ $return_code -ne 0 ];then
exit $return_code
Script2
if[ $return_code -ne 0 ];then
exit $return_code
Script3
if[ $return_code -ne 0...
Hi guys,
I really need a favour here.
Currently I have 4 CPUs in my server,
I need to load the 144 data, if I load the data sequencially. It takes about 2.5 hours which is not good.
So I need to load the data 3 data at a time assign to each CPU,
Here's roughly my script atm :
for file in...
Hi guys,
My DBA is on holiday, so I need to do simple edit for my store procedure in oracle.
So how do I search the "particular store proc" in oracle and open to edit it.
Much appreciated guys...
Hi guys,
I need to run the script but while the script is running, I don't want any people to run the script again.
Is there anyway to block any other people to do that ?
Thanks guys.
Hi Guys,
as title aboved I wanna set my script like that,
I have tried to setup permission 711, but the thing was
they couldn't even execute it.
Any idea other than encrypt the script ?
Hi guys,
my script has to run accross the server to modify the file...
So I have to ssh across and input the password, for some reason the ssh-keygen didnt work. I'm not sure why ...
So, is there any way to put the password in my script when I ssh accross ?
Thx guys
Hi guys,
I would like to create a script to trigger control M job if "wanted" file arrived.
I used to hear that control M has function file's watch, but I don't know how to use it.
or maybe I was thinking I can trigger control M from linux ?
Do you guys have any idea of those ways ? or any...
Hi guys,
I just need the check the user id that do su command switch to admin application logon.
Do you guys have any idea what command is it?
Thx guys
Hi guys
Here's my code :
while read line
do
echo "$line\tPROD\t$number"
done < list1
while read line
do
ssh ypdrp01 echo "$line\tDRP\t$number"
done < list1
The first loop is fine, but the second loop didnt work fine, It just read the first line. So could you guys help me...
Hi guys,
Just simple question, I was wondering to tell exactly how long has my script been running for ?
So could you guys tell me the command or idea ?
Thx guys,
Hi guys,
I need to have the file to be format 664 when the files are coming from ftp.
The current default that I've got is 644, even after I changed the umask value into 002.
So do you guys have any idea to change the permission with data coming from ftp ?
Thx guys
Hi guys,
Probably this is simple, but I couldn't figure it out..
I would like to print the field number containing particular "word" for each line.
How do I do that in awk or sed ?
Thx guys,
Hi guys,
I've got tcsh script like this :
#!/bin/tcsh -f
sqlplus ${DB_USER}/{DB_PSWD}@${SID} <<EOF
truncate table ATTRCONDITION;
quit
EOF
exit $status
Could you guys tell me what "@${SID}" for ?
And what's the difference between tcsh and normal shell script (ksh, sh) ?
thanks guys
Hi guys,
I would like to know how many CPU in my server and the speed, etc.
My server is Linux Redhat. Also my OS version ...
Is there any command to find those out ??
Thanks guys,
Hi guys,
I have to tried to validate whether the value is digit. I have tried this one but it's not working.
[[ "$f" == "[[:digit:]]" ]]
anyone can help me ??
Thx
Hi guys,
I was just wondering about doing ssh.
I was in prod atm and I did
ls -l ~/Script/*
It came up with my list of file right ?
After that I did
ssh ypdrp01 ls -l ~/Script/*
It came up with this
ls: /home/t003947/Script/RemoveBackupData.ksh: No such file or directory
ls...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.