shell script in Solaris to delete files older than 45 days in required directoryScript to Auto delete files...

Is my plan for fixing my water heater leak bad?

Charged enclosed by the sphere

The change directory (cd) command is not working with a USB drive

How do we edit a novel that's written by several people?

How to approximate rolls for potions of healing using only d6's?

Where was Karl Mordo in Infinity War?

Why do neural networks need so many training examples to perform?

What are these green text/line displays shown during the livestream of Crew Dragon's approach to dock with the ISS?

How do Japanese speakers determine the implied topic when none has been mentioned?

On what did Lego base the appearance of the new Hogwarts minifigs?

How to satisfy a player character's curiosity about another player character?

Removing debris from PCB

What is better: yes / no radio, or simple checkbox?

Can a person refuse a presidential pardon?

Could quantum mechanics be necessary to analyze some biology scenarios?

Can I retract my name from an already published manuscript?

Avoiding morning and evening handshakes

Sometimes a banana is just a banana

Can chords be played on the flute?

Is the theory of the category of topological spaces computable?

Am I a Rude Number?

Is Draco canonically good-looking?

How to mitigate "bandwagon attacking" from players?

How Should I Define/Declare String Constants



shell script in Solaris to delete files older than 45 days in required directory


Script to Auto delete files older than a few minutes in ubuntuShell script to check files and move them to different directoryDelete all files older than X daysHouse keeping removing 30+ days old files using shell scriptZipping files greater than 2GB in bash shellShell Script to GZIP files without overwrite .gz filesShell script to find all types of files in a directory with their countfind files older than create its parent folder in a directory and move them thereScript Shell: Delete a line from a fileShell script: Delete files when folder with same name does not exist













0















!/bin/bash



find /home/da/test/apps/testing/archive -type f -mtime +45 -exec rm -f {} ; >& /home/da/results.txt



mailx -s "Old log files deleted" test@.com < /home/da/results.txt



-Is there a way to send a notification mail to users 2 days before the files are going to be delete









share







New contributor




user2525 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    !/bin/bash



    find /home/da/test/apps/testing/archive -type f -mtime +45 -exec rm -f {} ; >& /home/da/results.txt



    mailx -s "Old log files deleted" test@.com < /home/da/results.txt



    -Is there a way to send a notification mail to users 2 days before the files are going to be delete









    share







    New contributor




    user2525 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      !/bin/bash



      find /home/da/test/apps/testing/archive -type f -mtime +45 -exec rm -f {} ; >& /home/da/results.txt



      mailx -s "Old log files deleted" test@.com < /home/da/results.txt



      -Is there a way to send a notification mail to users 2 days before the files are going to be delete









      share







      New contributor




      user2525 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      !/bin/bash



      find /home/da/test/apps/testing/archive -type f -mtime +45 -exec rm -f {} ; >& /home/da/results.txt



      mailx -s "Old log files deleted" test@.com < /home/da/results.txt



      -Is there a way to send a notification mail to users 2 days before the files are going to be delete







      shell solaris





      share







      New contributor




      user2525 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      user2525 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      user2525 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 5 mins ago









      user2525user2525

      1




      1




      New contributor




      user2525 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      user2525 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      user2525 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          user2525 is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1411063%2fshell-script-in-solaris-to-delete-files-older-than-45-days-in-required-directory%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          user2525 is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          user2525 is a new contributor. Be nice, and check out our Code of Conduct.













          user2525 is a new contributor. Be nice, and check out our Code of Conduct.












          user2525 is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1411063%2fshell-script-in-solaris-to-delete-files-older-than-45-days-in-required-directory%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

          VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

          Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...