Sorry to revive a dead topic, but I'm lost and have a similar problem.
When I try to run startup, with or without nohup, I'm told the directory doesn't exist.
sabrous@ps14248:~/src$ ./startup
: No such file or directory.
Just like everyone else here... Despite the fact that I do have tcsh installed on the server, it didn't help at all. Here's the first lines of the startup...
#! /bin/tcsh
# Set the port number.
set port = 4000
if ( "$1" != "" ) set port="$1"
Nothing out of the ordinary, no? Well, in an effort to stem the frustration that's plagueing us, someone coded a new startup file using bash. here's the first lines of that...
#!/bin/sh
####################################################
# Smaug startup script in bash #
# Written by Khtall for Sabrous #
# Functions the same as the normal startup script, #
# but it's written in bash, not csh. #
####################################################
#Name of the shutdown logfile
shutdown='shutdown.txt'
only when i try to run THAT, i get...
sabrous@ps14248:~/src$ ./sabstartup
-bash: ./sabstartup: /bin/sh^M: bad interpreter: No such file or directory
sabrous@ps14248:~/src$
what the hell. i've chmoded everything, and the server is adamant that it's 100% not their fault. but i can't think what on earth else it could be. the file works fine when tested on the offline version of the MUD. just not on the freakin server! HELP!
here's the ls -l of both files, in case it helps at all...
sabrous@ps14248:~/src$ ls -l startup
-rwxr--r-- 1 sabrous pg501817 1036 Sep 15 16:14 startup
sabrous@ps14248:~/src$ ls -l sabstartup
-rwxr-xr-x 1 sabrous pg501817 2308 Sep 16 05:50 sabstartup
after having checked out this post:
http://www.gammon.com.au/forum/?id=2322
i wonder if maybe the files are in DOS format? I did download them to a windows machine from the old server, and did edit them on my windows machine before re-uploading to the new server.
i tried to do a quick fix in vi in case this was the problem , but after inputting :1,$s/^M//g the pattern was not found. So, I'm guessing conversion ISN'T my problem.
so frustrated right now. |