Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ Running the server
➜ Startup Script
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Harlaquin
(16 posts) Bio
|
| Date
| Sat 09 Oct 2004 10:32 PM (UTC) Amended on Sat 09 Oct 2004 10:37 PM (UTC) by Harlaquin
|
| Message
| well i've been able to get an account on a *nix box but, i'm still having issuses with the startup script and as recommanded I'm now running Smaum14aFuss.tar.
these are the issues i'm having.....
mirrodan@riddick src $ ./startup 4000 &
[1] 27362
-bash: ./startup: /bin/csh: bad interpreter: No such file or directory
i don't know how to fix this but maybe someone can help me. I've gotten a clean compile already and I can do the following to start the mud but it doesn't run in the background like it should.
mirrodan@riddick src $ ./smaug 4000 &
and it'll run the mud so long as the area.lst files and the area files are in the src directory
thank you,
Harlaquin/Mirrodan | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #1 on Sat 09 Oct 2004 11:05 PM (UTC) |
| Message
| I'm not sure why you posted this question twice, but here's the answer again so that the question is answered here (it makes more sense here than in the other thread)
==========
You should do something like:
cd ../area
../src/smaug 4000 &
But you really should be using the startup script - you should get in touch with your sysadmin and find out if they don't have the csh interpreter, or if it's in some other location, and if they don't have it, could they install it.
They may have the tcsh interpreter, in which case you could simply change the first line from
#!/bin/csh
to
#!/bin/tcsh
This line is used to tell the operating system which interpreter to use to run the script. You can thus write "shell scripts" in any language e.g. perl, and put #!/usr/bin/perl as the first line to inform the OS that perl should be used to run the script. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| Harlaquin
(16 posts) Bio
|
| Date
| Reply #2 on Sun 10 Oct 2004 02:00 AM (UTC) |
| Message
| I did talk to my sysadmin and he said he doesn't use anything but bash and said i needed to find a bash startup script if someone can point me in the right direction that'd be great.
-Harlaquin/Mirrodan
| | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #3 on Sun 10 Oct 2004 02:54 AM (UTC) |
| Message
| I don't think a bash startup script exists in common distributions but it shouldn't be too hard to write one. You'd mainly have to change the syntax of the ifchecks to use the bash syntax (if ... then ... fi) instead of cshell (if ... then ... endif). Since the startup script is mainly commands and not a lot of settings, it shouldn't be too hard at all.
You could start I suppose by changing #!/bin/csh to #!/bin/bash, and see what kind of syntax errors you get.
Optionally you could ask your sysadmin to install csh - it's extremely easy to find and should be part of any standard package, especially if you're paying for this server. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| Harlaquin
(16 posts) Bio
|
| Date
| Reply #4 on Sun 10 Oct 2004 05:58 AM (UTC) |
| Message
| i talked to him about installing csh but he said it was for sloppy coders *mutter* so I guess i'm stuck wirth bash shell scripts i've yet to be able to find one.
the errors i get are as follows
./startup: line 5 syntax error near unexpected token 'set'
./srartup: line 5 'if ( "$1" != "" ) set port="$1"
-Harlaquin/Mirrodan | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #5 on Sun 10 Oct 2004 06:44 PM (UTC) |
| Message
| Your sysadmin sounds like a First Class Jerk, to put it mildly. If you are paying for this service, I mostly strongly suggest you find yourself another service. I happen to prefer bash as well but for him to get insulting about it seems a little excessive - not to mention that it puts a lot of burden on people to rewrite scripts into bash when *any* decent system has csh on it.
How about you go tell him that not having alternate shells is for sloppy sysadmins. :-)
In any case, in Bash your if statements need to be of the form if ... then ... fi. It's actually a little more complicated than that; I think that the following would work:
if [ "$1" != "" ] ; then set port="$1"
I don't know if you need to put 'fi' at the end of that or not; perhaps it's only when you have newline after the 'then'. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| Harlaquin
(16 posts) Bio
|
| Date
| Reply #6 on Sun 10 Oct 2004 08:04 PM (UTC) |
| Message
| ok i've rewritten some of it and made most of it work..now i get an unexpected end of file error. that seems to be the only error now ...I had to the 'then' with every if statement
Thanks for your help,
-Mirrodan | | Top |
|
| Posted by
| Harlaquin
(16 posts) Bio
|
| Date
| Reply #7 on Mon 11 Oct 2004 09:44 AM (UTC) |
| Message
| hey just to let you guys know i do have a copy of a bash script to start up smaug...it's not fool proof and has some errors but, if for some reason you don't have csh or ssh and only have bash i have something that you could use just email me at mirrodan@dreamsphere.org
-mirrodan | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #8 on Mon 11 Oct 2004 10:04 AM (UTC) |
| Message
| | Sounds great! Glad to know that you worked it out. :) Normally what one does is to simply paste the script here for everybody to see, and then maybe people can comment on it and if there were some things you aren't sure about they can be addressed as well. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | 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.
25,884 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top