G
grocery_stocker
I have a program that access's a bbs. When I do the following:
#!/usr/bin/perl -w
my $kidpid;
if (!defined($kidpid = fork())) {
die "cannot fork: $!";
} elsif ($kidpid == 0) {
exec("bbs");
die "can't exec date: $!";
} else {
waitpid($kidpid, 0);
}
I get
23 newresponse items and 2 brandnew items
First item 1, last 34
Ok:
The problem is that I want to pass the bbs 'browse' command at the
"Ok:"
prompt. Ie when I run the perl script, I want it to go like:
23 newresponse items and 2 brandnew items
First item 1, last 34
Ok:browse
Ideas?
#!/usr/bin/perl -w
my $kidpid;
if (!defined($kidpid = fork())) {
die "cannot fork: $!";
} elsif ($kidpid == 0) {
exec("bbs");
die "can't exec date: $!";
} else {
waitpid($kidpid, 0);
}
I get
23 newresponse items and 2 brandnew items
First item 1, last 34
Ok:
The problem is that I want to pass the bbs 'browse' command at the
"Ok:"
prompt. Ie when I run the perl script, I want it to go like:
23 newresponse items and 2 brandnew items
First item 1, last 34
Ok:browse
Ideas?