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 derfloh 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: *

  1. toronto2003

    unix find command

    Hello, I've a find command in one of our crontab script. This was build by one of my colleage who no longer works now. I need to know what the below mention command does: ########## find . -ctime +60 -exec rm {} \; ########## 1. Is is counting the 60 days older files and removing them...
  2. toronto2003

    Hello All, I've a unix script th

    Hello Ygor, Thanks for your help and reply back. In my script the echo statement reporting the count is echo &quot;File $my_dir/$i present with $(cat $i|wc -l) records.&quot; Where and how should i embedd the (( countA = $(wc -l < fileA.csv) - 1 )) Please help Thanks!
  3. toronto2003

    Hello All, I've a unix script th

    Hello All, I've a unix script that runs as a cron job to look for three *.csv files on a particular machine, do a record count in the *.csv files and report it via email. Currently even if there are no records in the *.csv files, it reports are record count=1. How can i take off this header...
  4. toronto2003

    unix script help required

    Hello, Below mentioned is the main body of my script. I need to add the different subject for &quot;Completed&quot; and &quot;Failed&quot; depending whether the file is found or not. The curent version is just showing one subject &quot;Results&quot; for both failed and completed. Where should...
  5. toronto2003

    unix script help required

    Hi, finally it worked now... How can i different email subject for failed and completed jobs? Thanks,
  6. toronto2003

    unix script help required

    Yes, i noticed that type,fixed it and it complains ./P2I[17]: syntax error at line 27 : `newline or ;' unexpected
  7. toronto2003

    unix script help required

    Hello Olded, This is my version based on your help but doesn't seem to work. I know there are some mistakes I've made but not able to figure it out. Can you please let me know what needs to be corrected. I'm confused with the mail part, the subject and the body of the email for both the...
  8. toronto2003

    unix script help required

    Hello Olded, I appreciate for all of your help here. this part worked. Earlier when you helped me with the job timing part i still need some help on it. I tried to scheudle the crontab on 15, 30, and 45 past the hour from midnight to 0400 and it keeps on running at all the times till 0400...
  9. toronto2003

    unix script help required

    Hello, As per the above script how can i two different messages, one if the job is completed and other if the job is failed? thanks,
  10. toronto2003

    unix script help required

    Hello Olded, thanks for your reply back and help on this. The other question i meant was based on SamBones script it sends the email out with the attachments of the files including the record count in the files. I want to have the email send out NOT with the attachments but with the file...
  11. toronto2003

    unix script help required

    Hello, One other question please, how can i have the files with the path rather than having them as attachment? Thanks
  12. toronto2003

    unix script help required

    Hello Olded, Thanks for your help on this. I did manage it out after i posted this question. One quick question though, if you would be able to help with :- ) the files that i'm looking for and doing a count get generated via other job at some time after 12:10 a.m How can i have the script...
  13. toronto2003

    unix script help required

    Hello Olded & Sambones thanks for your help on this. I really appreciate it. Can i ask for one more favor. What should i do in order to test this script before I schedule it to run as a cronjob at 6:00 am every morning. Would i be able to test the script for today's files that got generated...
  14. toronto2003

    unix script help required

    Hello, I need help writing a unix script and then have it as a cronjob running everyday at 6:00 a.m There are three .csv files that get generated every day via other job on \disk2\jobs directory: The files under this directory end with the current date: A_YYYYMMDD.csv B_YYYYMMDD.csv...

Part and Inventory Search

Back
Top