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
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.
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.
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.
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"
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'.
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
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
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.