From: Simon T. <se...@no...> - 2004-04-01 14:00:59
|
I have a script which spawns telnet expect handles. Works marvellously when run in the foreground - when I run the same script in the background it stops just after "AHEAD OF SPAWN". Doesn't even die gracefully - just stops. I don't understand enough about pty's to take this forward. What do I need to do/read to make this work when run in the background. Regards Simon $self->{_logger}->debug("AHEAD OF SPAWN"); eval { $Spawned = Expect->spawn("$args[0] $args[1]"); $msg = "Spawning to $args[0] $args[1]\n"; $self->{_logger}->info($msg); }; $self->{_logger}->debug("AFTER OF SPAWN"); Simon Taylor (Engineer) Service Tools Solutions (STS) Nortel Networks p - 01279 404289 (ESN 742 4289) m - 07740 533743 (ESN 748 3743) e - se...@no... "I code therefore I am" |