B
bigdogdan2
Is there a way I can get NET::TELNET to print out the data realtime
instead of after the command is finished?
My command:
@lines = $conn->cmd("./a.sh");
print @lines;
Where a.sh contains:
#!/bin/bash
for i in 1 2 3 4 5 6 7
do
ls /dev
sleep 5
done
Nothing gets outputed until the script finishes
Thanks,
Daniel
instead of after the command is finished?
My command:
@lines = $conn->cmd("./a.sh");
print @lines;
Where a.sh contains:
#!/bin/bash
for i in 1 2 3 4 5 6 7
do
ls /dev
sleep 5
done
Nothing gets outputed until the script finishes
Thanks,
Daniel