Yes, this will be the best way.

2011/1/14 Milton Ngan <mil...@valvesoftware.com>:
> I'll take a look at fixing this. The suggestion was to add the line:
>
>        cd $(dirname $0)
>
> to the start of the script. This should address the issue of having to be in 
> the same directory as the script to run it.
>
> -----Original Message-----
> From: hlds_linux-boun...@list.valvesoftware.com 
> [mailto:hlds_linux-boun...@list.valvesoftware.com] On Behalf Of Andre Müller
> Sent: Friday, January 14, 2011 11:02 AM
> To: Half-Life dedicated Linux server mailing list
> Subject: Re: [hlds_linux] srcds_run startscript
>
> Hm, maybe this is a cool new feature. But you can edit the srcds_run
> yourself. This file doesn't change many times.
>
> Greetings
> DeaD_EyE
> sourceserver,info
>
> 2011/1/14 Guy Watkins <hlds_li...@watkins-home.com>:
>> Linux can execute any program/script from any path.
>> ../../whatever/myexe
>> /whatever/myexe
>> ./myexe
>>
>> All the above are fine.
>>
>> Or you could add the directory to the PATH and then execute it like this:
>> myexe
>>
>> The problem is not Linux.  The problem is the script srcds_run.
>>
>> } -----Original Message-----
>> } From: hlds_linux-boun...@list.valvesoftware.com [mailto:hlds_linux-
>> } boun...@list.valvesoftware.com] On Behalf Of Simon Gunton
>> } Sent: Thursday, January 13, 2011 7:17 AM
>> } To: Half-Life dedicated Linux server mailing list
>> } Subject: Re: [hlds_linux] srcds_run startscript
>> }
>> } Its not a valve issue, its how linux works does not matter what file it
>> } is your executing you have to be in that folder.
>> }
>> } Simon
>> } Simon Gunton
>> } Support Analyst
>> } INX-Gaming.com
>> } Phone: 01733 687699
>> } EMail: si...@inx-gaming.co.uk <mailto:si...@inx-gaming.co.uk>
>> }
>> } Support: http://support.inx-network.com <http://support.inx-network.com/>
>> } This e-mail and any attachments are confidential. If you are not the
>> } intended recipient, please contact the sender. Please then delete the
>> } email and do not disclose the contents to anyone.
>> }
>> } Any views or opinions presented in this email or its attachments are
>> } solely those of the author and do not necessarily represent those of
>> } INX-Network Limited
>> }
>> } On 13/01/2011 12:05, Ulrich Block wrote:
>> } > I know what to do.
>> } > I just hoped that someone at valve reads my mail and add such funktion
>> } > to their skript so that less people will have problems...
>> } >
>> } > Am 13.01.2011 12:20, schrieb Simon Gunton:
>> } >> You could start the server with a script that would do the following:
>> } >>
>> } >> cd /home/gameserver1/srcds_l
>> } >> ./srcds_run -game cstrike +maxplayers 20 +map de_dust +ip IP -port
>> } >> PORT -tickrate 66 +tv_port 27086 +bot_join_after_player 1 +exec
>> } >> server.cfg -autoupdate& > /dev/n$
>> } >>
>> } >> Or add a 2nd script in the root of the users home folder to do the
>> } >> following where home and user are defined, which would then call a
>> } >> 2nd startline file which just held the 2nd line above with the
>> } >> ./srcds ............... stuff in.
>> } >>
>> } >>
>> } >> cd $home/$user/srcds_l/orangebox
>> } >> ./start.cssource > /dev/null > /dev/null 2>&1
>> } >>
>> } >> Either way the ./srcds bit has to be performed from within the folder
>> } >> you cant do ./home/yadayad/
>> } >>
>> } >>
>> } >> Simon Gunton
>> } >> Support Analyst
>> } >> INX-Gaming.com
>> } >> Phone: 01733 687699
>> } >> EMail: si...@inx-gaming.co.uk <mailto:si...@inx-gaming.co.uk>
>> } >>
>> } >> Support: http://support.inx-network.com
>> } >> <http://support.inx-network.com/>
>> } >> This e-mail and any attachments are confidential. If you are not the
>> } >> intended recipient, please contact the sender. Please then delete the
>> } >> email and do not disclose the contents to anyone.
>> } >>
>> } >> Any views or opinions presented in this email or its attachments are
>> } >> solely those of the author and do not necessarily represent those of
>> } >> INX-Network Limited
>> } >>
>> } >> On 13/01/2011 11:00, Ulrich Block wrote:
>> } >>> I just read on a forum that some people had issues starting their
>> } >>> servers.
>> } >>> They tried something like:
>> } >>>  "some/path/srcds_run -parameters"
>> } >>> which does not work because the srcds_run needs to be run from its
>> } >>> directory.
>> } >>>
>> } >>> Could someone at valve add something like
>> } >>> "cd $(dirname $0)"
>> } >>> at the start of the script to make it more userfriendly?
>> } >>>
>> } >>> _______________________________________________
>> } >>> To unsubscribe, edit your list preferences, or view the list
>> } >>> archives, please visit:
>> } >>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>> } >> _______________________________________________
>> } >> To unsubscribe, edit your list preferences, or view the list
>> } >> archives, please visit:
>> } >> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>> } >>
>> } >
>> } >
>> } > _______________________________________________
>> } > To unsubscribe, edit your list preferences, or view the list archives,
>> } > please visit:
>> } > http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>> } _______________________________________________
>> } To unsubscribe, edit your list preferences, or view the list archives,
>> } please visit:
>> } http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>>
>>
>> _______________________________________________
>> To unsubscribe, edit your list preferences, or view the list archives, 
>> please visit:
>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to