Login
User Name:

Password:



Register
Forgot your password?
 Just a few issues.
Yesterday, 10:13 pm
By Kayle
Compile Error & Overflows
Sep 5, 2010, 8:03 pm
By Daygon
Would anyone be willing
Sep 5, 2010, 9:33 am
By Remcon
Playing a MUD through Lan?
Aug 30, 2010, 11:04 am
By Raine
LoP1.39 Questions/Issues/Anomalies + Suggestions?
Aug 19, 2010, 4:24 pm
By Remcon
LOP 1.39r1
Author: Remcon
Submitted by: Remcon
Yaeger areas
Author: Yaeger
Submitted by: Cyberthrope
The City of Anon
Author: Yaeger
Submitted by: Cyberthrope
The Walls of Anon - Smaug
Author: Yaeger
Submitted by: Cyberthrope
LOP 1.39
Author: Remcon
Submitted by: Remcon
CommonCrawl, Radian6, Yahoo!, Sogou, Google

Members: 0
Guests: 2
Stats
Files
Topics
Posts
Members
Newest Member
375
3,323
16,514
561
Aurin
Affiliates
Smaug Building Institute Arthmoor
» SmaugMuds.org » Codebases » AFKMud Support & Development » error using ./startup &
Forum Rules | Mark all | Recent Posts

error using ./startup &
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Feb 7, 2010, 4:02 pm
Go to the bottom of the page Go to the top of the page
dextermovies
Fledgling
GroupMembers
Posts20
JoinedSep 10, 2005

I get this error when trying to do the ./startup &

'root@localhost src]# Unknown option: `-
Usage: csh [ -bcdefilmnqstvVxX ] [ argument ... ].

[1]+ Exit 1 ./startup


I have installed csh using yum install csh
       
Post is unread #2 Feb 7, 2010, 5:52 pm
Go to the bottom of the page Go to the top of the page


Kayle
Nibelungen
GroupAdministrators
Posts1,041
JoinedMar 21, 2006
WWW

Post the startup file? .........................
Owner/Coder -- Malevolent Whispers -- Development Phase - Not accepting players
Coder -- Star Wars: The Sith Wars -- Open Alpha - Players Welcome - Full System Re-writes Imminent.

I3 Contact: Kayle@SithWars
       
Post is unread #3 Feb 7, 2010, 5:56 pm
Go to the bottom of the page Go to the top of the page
dextermovies
Fledgling
GroupMembers
Posts20
JoinedSep 10, 2005

#! /bin/csh -f



# Set the port number.

set port = 5055

if ( "$1" != "" ) set port="$1"



# Change to area directory.

cd ../area



# Set limits.

nohup

if ( -e shutdown.txt ) rm -f shutdown.txt

limit coredumpsize unlimited

limit stacksize unlimited



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



# Run AFKMud.

# Check if already running

set matches = `netstat -an | grep ":$port " | grep -c LISTEN`

if ( $matches >= 1 ) then

# Already running

echo Port $port is already in use.

exit 0

endif

../src/afkmud $port >&! $logfile



if ( -e core ) then

\mv core ../src

cd ../src

date > ../crash/$index.crash

gdb -batch -x commands afkmud core >> ../crash/$index.crash

#rm -f core

cd ../area

endif



# Restart, giving old connections a chance to die.

if ( -e shutdown.txt ) then

rm -f shutdown.txt

exit 0

endif

sleep 5

end
       
Post is unread #4 Feb 7, 2010, 6:08 pm
Go to the bottom of the page Go to the top of the page


Kayle
Nibelungen
GroupAdministrators
Posts1,041
JoinedMar 21, 2006
WWW

Try copying the text out of the existing file, and putting it in a brand new file. Then delete the old file, and rename the new one to startup. .........................
Owner/Coder -- Malevolent Whispers -- Development Phase - Not accepting players
Coder -- Star Wars: The Sith Wars -- Open Alpha - Players Welcome - Full System Re-writes Imminent.

I3 Contact: Kayle@SithWars
       
Post is unread #5 Feb 7, 2010, 9:42 pm   Last edited Feb 7, 2010, 9:45 pm by dextermovies
Go to the bottom of the page Go to the top of the page
dextermovies
Fledgling
GroupMembers
Posts20
JoinedSep 10, 2005

Got it, I used dos2unix and it worked :D
       
Post is unread #6 Feb 7, 2010, 9:52 pm
Go to the bottom of the page Go to the top of the page


Kayle
Nibelungen
GroupAdministrators
Posts1,041
JoinedMar 21, 2006
WWW

I figured that's what the issue was. Glad you got it fixed. .........................
Owner/Coder -- Malevolent Whispers -- Development Phase - Not accepting players
Coder -- Star Wars: The Sith Wars -- Open Alpha - Players Welcome - Full System Re-writes Imminent.

I3 Contact: Kayle@SithWars
       
Pages:<< prev 1 next >>

 
Contact Us