Results 1 to 2 of 2

Thread: A Simple Tutorial Script To Check Multics Running

  1. #1
    Status
    Online
    Geosharing's Avatar
    GS Administrator
    Join Date
    May 2014
    Location
    -=UAE=-
    Interests
    CardSharing
    Posts
    1,895

    A Simple Tutorial Script To Check Multics Running

    hi all!
    Tutorial how to create multics running check script and if multics stops then that script runs multics self up again
    1) Log over putty to server as root and give next commands to create the script:

    cd /etc
    touch multics.sh
    chmod 777 multics.sh
    nano multics.sh


    Next copy all that inside the multics.sh:
    PHP Code:
    #!/bin/bash
    if ! ps -C multics.x86 > /dev/null
    then
        
    /usr/local/bin/multics.x86
    fi 
    Next hit from your keyboard ctrl+o to save and ctrl+x to exit.
    2) Now we need make a cron job what executes the script every 1, or from you set minutes. Please give next commands to make a cron job:

    cd /etc
    export EDITOR="nano"
    crontab -e


    There add new line to the job list so:
    PHP Code:
    */* * * * /etc/multics.sh 
    Hit ctrl+o to save and ctrl+x to exit and test the script out if it is working. Kill multics.x86 from /usr/local/bin and wait 1 minutes and multics should go self up again.

    Note: this script is also works when linux OS restarted

    good
    but to run each minute you have to change the crone command to



    PHP Code:
    * * * * * /etc/multics.sh 

    Attached Files Attached Files

  2. #2
    Status
    Offline
    hamidu93's Avatar
    Newbies Users
    Join Date
    Jul 2014
    Posts
    2
    merci pour votre aide

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Simple script | Autorestart MultiCS
    By Geosharing in forum CARDSHARING TUTORIALS
    Replies: 0
    Last Post: 07-24-2015, 07:31 PM
  2. MultiCs a Full Tutorial R74
    By Geosharing in forum Multics
    Replies: 1
    Last Post: 07-30-2014, 11:04 AM
  3. Oscam script to check for high ecm value
    By Geosharing in forum CARDSHARING TUTORIALS
    Replies: 0
    Last Post: 07-18-2014, 08:06 PM
  4. MultiCS END-DATE Script
    By skyhome in forum Multics
    Replies: 5
    Last Post: 07-07-2014, 09:39 AM
  5. Simple script | Autorestart MultiCS
    By Geosharing in forum Multics
    Replies: 1
    Last Post: 05-13-2014, 02:30 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
RSS RSS 2.0 XML MAP HTML TAGS

All posts written express the point of view of its owner, does not imply in any way the point of view of management forum.

petites annonces