Recent content by iamsaicharanburle

  1. I

    How to pass the argument while we schedule the script in the cronjob

    Hi, I have a shell script to capture the thread dump and the CPU utilization. While executing the script it will prompt PID as an argument and is fine during manual execution. I wanted to schedule it in the cronjob and need to pass the PID as an argument. I've tried using the below way but it...
  2. I

    Issue with the Log Archival and Removal using Bash script

    Hi Jas, Basically i tried this way with your script and it worked too find "$LOC1" "$LOC2" -maxdepth 1 -type d | grep -v "archive" > "$TMPHOME/LOCS" Added LOC2 variable and used the same in the find command above. Thanks Much for your quick assistance in this regard. Will come back to you...
  3. I

    Issue with the Log Archival and Removal using Bash script

    Hi Jas, Thank you for your response. Just to give some update to my initial post. I've found the root cause like why it is throwing the error and its because the file names with permissions 755. Whatever the find command that i used with the combination of ls and xargs are ignoring the files...
  4. I

    Issue with the Log Archival and Removal using Bash script

    Hi There, Can i get any assistance in this regard.
  5. I

    Issue with the Log Archival and Removal using Bash script

    Hi Team, I prepared one shell script to find a file and move and zip and archive. But while i execute the script it is throwing error for the files dated with 2019 as no such file or directory file name will be something like server.log.2019-07-10* : No Such file or Directory. However it is...
Top