One thing to consider is that when you run your script it spawns a new
shell that is not a login shell, so logout wouldn't do anything.  Also,
whatever the perl program does, it gives a return value to the shell or
nothing at all.  I don't think (not sure though) that a subprocess has
the ability to control the parent process (nicely).  

Hugh

> 
> Alright, I don't know if anyone out there is too much of a perl hacker, but 
> if there is anyone, I have a question...  How do I put a command in my 
> program to logout of the system?  (This would also have to end the program 
> of course)  I have tried things like exec ("logout") or system ("logout") 
> or things like that, but nothing seems to help.  I'm almost considering 
> trying to parse a 'ps u' for the actual login and try to kill the process, 
> but I'd rather not mess with all that code for such a thing.  There's got 
> to be an easier way to do it!  I just don't know how...  :(
> 
> Ammon Sutherland
--------------------------------------------------------------------------------- 
To unsubscribe from the BYU UUG discussion mailist list, send email to
[EMAIL PROTECTED] with the word "UNSUBSCRIBE" as the message body

Reply via email to