Community Forums Today's Posts     Member List     Archive    
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2009

    auto start@reboot debian

    Hi, i tried do autorestart like many ppl posted on this forums but:
    i got always:
    -bash: ./ts: /bin/sh^M: bad interpreter: No such file or directory
    and it never autostarts after reboot

    maybe the easier way?
    can i make a crontab job like:
    plz help

  2. #2
    Join Date
    Jan 2007

    My guess is, that the file is in windows format with \r\n at the end.
    open ts script with vi:
    vi ts

    then in vi type:
    :set fileformat=unix
    (with : !!)

    then close vi with:
    (with : !!)

    then start the script:

    should work now.

    Ciao Ephraim

  3. #3
    Join Date
    May 2006
    Europe/Czech Rep.
    VI or VIM yes...(post above agreed)

    u can use PSPad and WinSCP
    yes the post above tells u where is mistake its in Operating System line ending
    Windows have \r\n
    Linux have \n
    but when linux parse any file he take it as char anyway and there is no such file as /bin/sh^M (that ^M stands for that special char.)

    of course for PsPad u have to also change the line ending to Unix
    but its GUI app.
    and one advice for live important of any remote controled machine
    //better for all files
    !! dont use F4 in WinSCP or any windows notepad it will put there windows line ends !! (this rly got me several times already)

    another way can be if u have or installed mc on that machine run it and edit the file in it. U will have to remove that ^M from each line but it will fix it.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Ts2 auto start unter Debian etch
    By Tristan1990 in forum [TeamSpeak 2] Server Support
    Replies: 9
    Last Post: 05-06-2008, 13:12
  2. Moderated Channel Auto Auto-Voice
    By Dummer Sack in forum [TeamSpeak 2] General Questions
    Replies: 3
    Last Post: 07-11-2003, 17:43
  3. Auto OP / Auto Voice bug?
    By PoopShooter in forum [TeamSpeak 2] Server Support
    Replies: 0
    Last Post: 06-03-2003, 01:01
  4. So what is Auto Voice & Auto Operator?
    By FuZe in forum [TeamSpeak 2] Client Support
    Replies: 4
    Last Post: 11-09-2002, 06:30

Posting Permissions

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