[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Running the server
. . -> [Subject]  startup file problem

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

startup file problem

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by VanGota   (3 posts)  [Biography] bio
Date Tue 04 Feb 2003 10:32 PM (UTC)  quote  ]
Message
Hi,

My startup file keeps giving me this wierd error, and
all my friends and coders have no clue. I seem to notice
my dystopia startup did the same but i have one that does work and its written like straight and the other is paragraph and has some boxes (im not good at scripting)

here's the error:
Unknown option: `-
Usage: csh [ -bcdefilmnqstvVxX ] [ argument ...].
[Go to top] top

Posted by Nick Gammon   Australia  (18,797 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Wed 05 Feb 2003 08:55 PM (UTC)  quote  ]
Message
It is hard to debug a script without seeing it. If it isn't too long perhaps post it here?

Also, can you tell us which operating system you are using (eg. Linux, Windows using Cygwin) and which version of csh, by typing:

csh -c set

Report the contents of the "version" variable.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by VanGota   (3 posts)  [Biography] bio
Date Reply #2 on Thu 06 Feb 2003 03:08 AM (UTC)  quote  ]
Message
Yah its not too long, and it says linux,

#! /bin/csh -f

# Set the port number.
set port = 5832
if ( "$1" != "" ) set port="$1"

# Change to area directory.
cd ../area


# Set limits.
nohup
nice
limit stack 1024k
if ( -e shutdown.txt ) rm -f shutdown.txt

while ( 1 )
# If you want to have logs in a different directory,
# change the 'set logfile' line to reflect the directory name.
set index = 1000
while ( 1 )
set logfile = ../log/$index.log
if ( ! -e $logfile ) break
@ index++
end

# Record starting time
date > $logfile
date > ../area/boot.txt

# Record initial charges
# charges >> $logfile

# Run SMAUG.

../src/swreality $port >&! $logfile
# ../src/swreality >>&! $logfile

# Record ending charges
# charges >> $logfile

# # Delete this out if no adb.
# if ( -e core ) then
# echo '$c' | adb ../src/smaug
# endif

# Restart, giving old connections a chance to die.
if ( -e shutdown.txt ) then
rm -f shutdown.txt
exit 0
endif
sleep 15

end


Thx!
[Go to top] top

Posted by VanGota   (3 posts)  [Biography] bio
Date Reply #3 on Fri 07 Feb 2003 04:36 PM (UTC)  quote  ]
Message
tcsh 6.10.00 (astron) sorry forgot to tell you that

Thanks Nick!
[Go to top] top

Posted by Zeno   USA  (2,868 posts)  [Biography] bio   Moderator
Date Reply #4 on Thu 26 Feb 2009 08:18 PM (UTC)  quote  ]
Message
What exactly causes this error? Getting it now myself.

tcsh 6.14.00 (Astron) 2005-03-25 (i386-intel-linux) options wide,nls,dl,al,kan,rh,color,filec

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Nick Gammon   Australia  (18,797 posts)  [Biography] bio   Forum Administrator
Date Reply #5 on Fri 27 Feb 2009 06:55 PM (UTC)  quote  ]
Message
A search for that error message revealed this possible solution:

Quote:

Your export/import script is in DOS format and you copied it to your unix box to run (gauranteed). Run your script through the dos2unix command which will convert it. To verify that this is your problem, simply cat your script and you'll see that the lines are not properly terminated with CR/LF

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Zeno   USA  (2,868 posts)  [Biography] bio   Moderator
Date Reply #6 on Fri 27 Feb 2009 07:16 PM (UTC)  quote  ]
Message
Bingo, that fixed it. Thanks.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Dextermovies   (65 posts)  [Biography] bio
Date Reply #7 on Thu 09 Apr 2009 03:25 PM (UTC)  quote  ]
Message
And how to we run it through this converter thing ?
[Go to top] top

Posted by Zeno   USA  (2,868 posts)  [Biography] bio   Moderator
Date Reply #8 on Thu 09 Apr 2009 03:41 PM (UTC)  quote  ]
Message
http://www.linuxcommand.org/man_pages/dos2unix1.html

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


4,276 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]