Thread: system calls
View Single Post
Old 07-19-2002, 10:50 PM   #4
LordKiev
New Member
 
Join Date: Apr 2002
Location: Atlanta, GA
Posts: 8
LordKiev is on a distinguished road
Send a message via AIM to LordKiev
Um... Trying to think. Basically, just write a command (startmain) or something, and have it execute a system call. The sytanx would be system("command"); so, depending, somthing like:

[code]
void do_startmain(char *argument, CHAR_DATA *ch)
{
if(!IS_IMMORTAL(ch))
return;
system("./../area/startup 3345")
return;
}
[/quote]
This hasn't been bug-tested, but that's the general assumption, assuming you're running them off the exact same code. If you're not, and especially if they're run off different accounts, then that's more about Linux than I know. But essentially make the system call to wherever the startup script is. But I'm curious, are the two sets of code the same? Same account, same privledges, etc?
LordKiev is offline   Reply With Quote