| View previous topic :: View next topic |
| Author |
Message |
StaleJoke Voice
Joined: 29 Nov 2005 Posts: 10
|
Posted: Thu Dec 29, 2005 2:06 pm Post subject: Startup another bot. |
|
|
I searched already, didnt find so posting
I need to know how can i make one bot startup another one which is in a different directory.
Please dont tell me to use contrab because i do not want the contrab to check it every some minutes and then start. I want to start another bot only as a result of some specific action.
I have tried this,
| Code: |
catch {exec /home/otherbot/scripts/botchk >/dev/null 2>&1}
|
It does not work.
Any suggestions ? |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
StaleJoke Voice
Joined: 29 Nov 2005 Posts: 10
|
Posted: Thu Dec 29, 2005 10:13 pm Post subject: |
|
|
This way ?
| Code: |
proc sother {} {
catch {exec "./home/otherbot/scripts/botchk >/dev/null 2>&1"}
}
|
Does not work. |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Thu Dec 29, 2005 10:28 pm Post subject: |
|
|
The first '.' (dot) after the quote is for? I only said quotes. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
StaleJoke Voice
Joined: 29 Nov 2005 Posts: 10
|
Posted: Thu Dec 29, 2005 10:30 pm Post subject: |
|
|
| With or without the '.' Either ways it does not work. |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Fri Dec 30, 2005 1:18 am Post subject: |
|
|
[exec] is not your Unix shell, it doesn't support redirection in the form of 2>&1 (it supports redir, but its syntax/semantics is a bit different)
so either try without it, or exec bash and pass the command with redir to it _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
StaleJoke Voice
Joined: 29 Nov 2005 Posts: 10
|
Posted: Fri Dec 30, 2005 8:43 pm Post subject: |
|
|
| You lost me there. |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Fri Dec 30, 2005 11:47 pm Post subject: |
|
|
if [exec] is rocket science to you, give up on it and try something easier
I wonder what exactly is it that you didn't understand _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Sat Dec 31, 2005 5:47 am Post subject: |
|
|
Why don't you just create a shell script and call it via exec as demond sugested? _________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
|