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 biv343 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: prog3
  • Order by date
  1. prog3

    How to pass value back to the calling script?

    Hi, I have a K shell script a.scr calling b.scr. b.scr does some calulation and returns a value. I need this value passed back on to a.scr for further processing? Any help on how to pass back the value is greatly appreciated. Thanks, Prog3.
  2. prog3

    Two scripts running at the same time thru cronjob. Will it affect?

    Thanks for the information, Salem. How do I resolve this problem? Can I start running the scripts at different times? What other ways do I have to find if the process AB is running?
  3. prog3

    Two scripts running at the same time thru cronjob. Will it affect?

    Hi, I have 2 scripts running at the same time through cronjob. The scripts have the same functionality except for the path names, creating log files. The scripts are as follows. Script A: #!/bin/sh RPT_TO=/home/scripta RPT_LOG=/home/loga V=`ps -eaf | grep AB | wc -l` if [ $V -gt 1 ]; then...
  4. prog3

    delete files using find command -help needed

    Thanks a lot guys. Wow!! it is amazing to know the different ways of scripting. I appreciate all your help.
  5. prog3

    delete files using find command -help needed

    Hi I am writing the deleted pass file to a log file. So, I need to loop thru one file after the other. I followed -prune command and wrote the following script. #!/bin/sh RPT_TO=/home/load RPT_LOG=/home/ rm $RPT_LOG/delete.log for myFile1 in `find $RPT_TO \( -type d -name Processed...
  6. prog3

    delete files using find command -help needed

    Hi, I am writing a script using find command to search for particular files in a directory and delete the files. The directory structure is like this - /home/load and /home/load/processed. The files are named as *.pass files and it is present in both /home/load and /home/load/processed...
  7. prog3

    To find a value from a file

    Thanks a lot, Salem. It worked correctly. prog3
  8. prog3

    To find a value from a file

    Hi Guys, Thanks for all your responses. It has been most helpful. I tried all the 3 solutions. Salem's code - I get all the values. Since, I wanted only the Last value of the Document number, I did not how to change the awk command. olded - The code worked perfectly. PHV - I tried this...
  9. prog3

    To find a value from a file

    Hi, I am new to unix scripting and need help for the following question. Any kind of help is appreciated. The file I have is of the following format. GROUP_FIELD_NAME:DocumentNumber GROUP_FIELD_VALUE:1 GROUP_FIELD_NAME:PolicyNumber GROUP_FIELD_VALUE:295 GROUP_FIELD_NAME:AccountNumber...

Part and Inventory Search

Back
Top