Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I would basically like to create a script which would automatically run "df -k" in putty. I would like this to run automatically at certain times of the day. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2011
    Posts
    1

    How to create a script for putty


    Hi,
    I would basically like to create a script which would automatically run "df -k" in putty.
    I would like this to run automatically at certain times of the day.
    How can I do this please?
    Once it is run, I would like the output to be sent via email.
    Thanks!
    Sorry if this isn't the right page that I am posting in but i am new at this!

  2. #2
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,025
    Hello and Welcome!

    What you're looking for is a cron job.
    Take a look here for a quick reference: Crontab – Quick Reference

    Here's one that's a little more detailed: Newbie: Intro to cron
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •