Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: h3nd
  • Content: Threads
  • Order by date
  1. h3nd

    quick question about sed pls...

    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,
  2. h3nd

    To run the script in window time

    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...
  3. h3nd

    Run the Script from particular point ...

    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...
  4. h3nd

    Running command simultaneously, please help

    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...
  5. h3nd

    Finding and edit stored procedure

    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...
  6. h3nd

    How to run the script exclusively

    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.
  7. h3nd

    how to setup file executable but unreadable..

    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 ?
  8. h3nd

    how to store the password for ssh in ksh ??? Help ...

    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
  9. h3nd

    command to check who edit the file ...

    Hi guys, I just need to find out who is the last person that edit the file ? is there any command to check that ? Cheers,
  10. h3nd

    How to trigger control-M scheduler from linux, help ?

    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...
  11. h3nd

    How to modify file without changing the time stamp

    Hi guys, Just need simple command how to modify the file without changing the time stamp for the file... Thx guys
  12. h3nd

    command to see the user changing logon

    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
  13. h3nd

    reading line in ssh, pls help ...

    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...
  14. h3nd

    command to tell how long my script has been running ...

    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,
  15. h3nd

    file from ftp with default permission format 664, help pls...

    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
  16. h3nd

    print the field number containing word pls ...

    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,
  17. h3nd

    question about tcsh script please ...

    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
  18. h3nd

    command to check our hardware conf ...

    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,
  19. h3nd

    how to validate the value is digit pls ...

    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
  20. h3nd

    simple explanation about ssh ls *...

    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...

Part and Inventory Search

Back
Top