execute a kermit script use
$kermit + kscript
Arguments can be passed to script as
$kermit + kscript arg1 arg2
These arguments can be referenced within the script as \%1, \%2 etc.
Here \%1 = arg1 and \%2 = arg2
Conditionals
kermit scripts support conditional execution using "if" and looping
using "while".
if ! equal \%1 "" {
# Some piece of code to be executed when first argument is non-null
}
I have never actually used a "while" but here is one example I found
in a script.
while ! \F_eof(\m(f)) {
fread \m(f) l
out \m(l)\13
in 60 >
}
No comments:
Post a Comment