Find the answer to your Linux question:
Results 1 to 2 of 2
Hello, I would like to receive a regular email containing results of the following commands: locate *file* nano *file* Is this possible? Thanks....
  1. #1
    RAH
    RAH is offline
    Just Joined!
    Join Date
    Jun 2008
    Posts
    31

    Question Server Email

    Hello,

    I would like to receive a regular email containing results of the following commands:

    locate *file*
    nano *file*

    Is this possible?

    Thanks.

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    Look at cron and use something like this;

    Code:
    /usr/bin/locate *file* | /bin/mail -s 'Locate results' root

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

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