need help with edit text file in unix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • redfrog
    Registered User
    • Aug 2004
    • 78

    #1

    need help with edit text file in unix

    hi one of my arrow trader cronjob stoped from running , i want to reinstall the scrip , but first i have to make sure that the cron for this site was deleted from the crontab in putty.exe i connect via ssh to my server , i type crontab -l to see the cron tab , then i see those 2 line i need to delete
    and i now need to type crontab -e

    here come the question :
    technicly how do i delete those line? mark it and press delete? maybe i just need to add ## before ?

    thanks
    http://www.jigglymelons.com | http://www.jigglymelons.com/mgp
  • Kaylum
    Confirmed User
    • Aug 2005
    • 465

    #2
    the (#) will disable the cron entry, but if you want to remove the entry while in the editor..

    i believe the actual command is dependent on the editor your using; i use vi, so just a dd (kaboom).
    -- "You can't stop ingenuity, trust me.."

    Comment

    • redfrog
      Registered User
      • Aug 2004
      • 78

      #3
      how do i find wich editor im using? after im typing crontab -e it show all the crontab and then this line
      /tmp/crontab.UGmfVkYwEI: unmodified: line 1
      http://www.jigglymelons.com | http://www.jigglymelons.com/mgp

      Comment

      • Nasty
        Confirmed User
        • Aug 2002
        • 1575

        #4
        I write all my crontabs in a pure ascii editor, save them as crontab.txt, uplod them via ftp then type crontab crontab.txt and it overwrites the old cron with the new one, its pretty dummy proof this way and I have a copy of my crontabs for all of my different servers saved on my desktop

        If you dont have homesite or something like it, free pure ascii editors can found pretty easy on google

        “Ours is a world of nuclear giants and ethical infants. We know more about war than we know about peace, more about killing than we know about living. If we continue to develop our technology without wisdom or prudence, our servant may prove to be our executioner.” ― Omar Bradley (1948)

        Comment

        Working...