Results 1 to 2 of 2

Thread: altenative to "yes" command !!

  1. #1
    Member
    Join Date
    Oct 2007
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Exclamation altenative to "yes" command !!

    Hi all,

    I need to run a script (or command) in every 3 mins.
    I am using "yes" command for this job as:

    Code:
    yes "date; sleep 180" | sh
    However, I wanted to know is there some other alternative to this command, as it is not installed in my other Sun server.

    I dont have acces to crontab.

    Pls help.

    Thanks in adv,
    Vikas

  2. #2
    Member
    Join Date
    Oct 2007
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Thanks to all,

    Well I found an answer to my quest.

    This works perfectly.

    while (1)
    date
    sleep 180
    end
    Regards,
    Vikas

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Oracle "show databases" list
    By raj in forum Databases servers
    Replies: 2
    Last Post: 15th October 2011, 09:28 AM
  2. Redhat: Up2date " permission denied" while root
    By guarrand in forum Getting started tutorials
    Replies: 2
    Last Post: 3rd July 2008, 11:50 AM
  3. Replies: 2
    Last Post: 30th October 2007, 07:23 PM
  4. [Commercial] SafeSquid "SPEED-BOOSTER" 4.2.0 Released
    By httpproxy in forum Networking, Firewalls and Security
    Replies: 1
    Last Post: 26th September 2007, 08:05 PM
  5. Replies: 3
    Last Post: 29th August 2007, 07:45 PM

Posting Permissions

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