[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]  MUDs
. -> [Folder]  General
. . -> [Subject]  Mud 'startup' script not working

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Mud 'startup' script not working
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Wed 08 Jun 2005 01:36 AM (UTC)  quote  ]
Message
The packages are there, but they may not be named what you expect.

The issue looks like what you're having trouble with in your other post.

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

Posted by Lt_noodle   (39 posts)  [Biography] bio
Date Wed 08 Jun 2005 01:29 AM (UTC)  quote  ]
Message
I am getting the same thing.

bash-2.05b$ echo

bash-2.05b$ tcsh startup
limit: Command not found.
date: Command not found.
date: Command not found.

I tried reinstalling cygwin, i couldn't find it from the list of packages...
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Sat 25 Sep 2004 12:42 AM (UTC)  quote  ]
Message
All a shell script basically is, is to submit each line in it to the command processor. So, I repeat my suggestion that you enter each line and see which one it crashes on. Or, turn echoing on, I'm not sure how to do that as I'm not at my PC. That way you see each line echoed before it is processed.

- Nick Gammon

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

Posted by Marowi   (61 posts)  [Biography] bio
Date Thu 23 Sep 2004 04:14 PM (UTC)  quote  ]
Message
*BUMP*

Still no luck, any more ideas?
[Go to top] top

Posted by Greven   Canada  (835 posts)  [Biography] bio
Date Sat 18 Sep 2004 01:59 PM (UTC)  quote  ]
Message
Just as a note, when we were going over this, "whereis csh" did produce /bin/csh

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
[Go to top] top

Posted by Marowi   (61 posts)  [Biography] bio
Date Sat 18 Sep 2004 11:13 AM (UTC)  quote  ]
Message
We've already tried both the csh and tcsh shells.

-sh-2.05b$ csh startup
: Command not found.
: Command not found.
: No such file or directory.
-sh-2.05b$


Really need to work this out - it's driving me batty.
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Sat 18 Sep 2004 03:35 AM (UTC)  quote  ]
Message
Strange. Try removing the whole first line. Then try manually typing each line in and seeing which, if any, it crashes on.

You could try:

csh startup

You could also try a different shell, eg.

tsch startup


- Nick Gammon

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

Posted by Marowi   (61 posts)  [Biography] bio
Date Fri 17 Sep 2004 05:10 AM (UTC)  quote  ]
Message
I've already gone over this with a number of people, including Greven. Nothing has worked so far.

When I try to use the startup script, I get this:
Quote:
-sh-2.05b$ ./startup &
[1] 21734
'sh-2.05b$ Unknown option: `-
Usage: csh [ -bcdefilmnqstvVxX ] [ argument ... ].

[1]+ Done(1) ./startup
-sh-2.05b$

My startup script is as follows:

#! /bin/csh -f

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

cd ../area

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

while ( 1 )
    set index = 1000
    while ( 1 )
	set logfile = ../log/$index.log
	if ( ! -e $logfile ) break
	@ index++
    end

    date > $logfile
    date > ../area/boot.txt

    set matches = `netstat -an | grep ":$port " | grep -c LISTEN`
    if ( $matches >= 1 ) then
        echo Port $port is already in use.
        exit 0
    endif

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

    if ( -e shutdown.txt ) then
	rm -f shutdown.txt
	exit 0
    endif
    sleep 10
end


I even tried getting a startup script from another mud on the server (I help out on their mud too) - theirs works for them, but not for me.

I have already tried removing the '-f' from the csh, and I enter csh when I type 'csh', so it's definitely there.

Please help, I'm stumped.
[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.


2,469 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]