@SUBJECT:Remote Script Initialization
I work nights at the local Kmart and since I'm only allowed to do
automated file transfers after 9:30PM, I'd like to be able to
start my file transfers during my shift so they're finished by
the time I get home.
One way of doing this would be to program a simple loop that
starts the script at a pre-determined time. While that may be
neat, I'd like to be able to start it by remote, just to see if I
can do it.
I know how to implement the procedure--I'm just not sure if it
would work this way. Theoretically it appears that it should
work, but I don't live in a theoretical world, so could someone
look at the code below and see where it might go wrong or where
it could be improved upon?
Summary: I want the script to call another script (the file
transfer script) after 8 incoming rings (a pre-determined number)
and a five-second delay (gives me time to hang up).
So would this work?
main ()
{
int callinit=8;
int cnt;
int t1,current;
str script[12];
t1=track("RING");
while (cnt < callinit)
{
terminal();
stat=track_hit(0);
if (current==t1) cnt=cnt+1;
}
delay_scr (50);
if (carrier () 0)
{
call (script);
}
}
---
Isaac Grover (1:214/80)
In the year 2000, the average computer will have 0.6 humans.
--- QScan/PCB v1.19b / 01-0154
---------------
* Origin: MicroLink BBS * Dinuba, CA 209-591-8753 (1:214/80)
|