Subj : Error attempting to run 'between' script
To   : Rj Clay
From : Roy Witt
Date : Sun Oct 14 2012 04:32 pm


Rj Clay wrote to Roy Witt:

RC>>>    Something I've been seeing that I'm trying to figure out:

RC>>> -----<cut>----------------------------------
RC>>> % 11:16:58  System: between
RC>>> % 11:16:58  execvp returned -1, errno is 2.
RC>>> ? 11:16:58  Error executing program.
RC>>> -----<cut>---------------------------------

RC>>>    IIRC, the error being returned is 'No such fail or directory'.

RW>> Is the 'script' a reference to the 'batch' file used in the DOS or
RW>> Win version, as in between.bat?

RC>     A 'script', as in; "a small program written for a command
RC> interpreter...". And yes, on DOS or Windows systems, they've been
RC> commonly referred to as 'batch' files.

OK...

RW>>  Is Linux looking for a file with a .SCR extension? Are *.SCR files
RW>> executable in Linux?

RC>    On linux/unix systems, there is no requirement for using an
RC> extension on a file name (like '.bat' or '.cmd') in order to identify
RC> a file as a batch or script file, although it's not unusual to use
RC> one for other reasons. (The command line shell checks the first line
RC> in the file for the sequence "#!" at the beginning of the line; if
RC> present, then what follows on that line is the path & name to the
RC> program to be used to process the rest of the file.)

Ok with that too.

RC>    So to me, the line "System: between" noted above indicates that
RC> IRex is attempting to run the batch/script file named "between",
RC> which the error says it can't access and/or find. That file is in the
RC> base directory where Internet Rex is installed, where the Irex
RC> executables are installed, including 'rexl'.  It is set as an
RC> excutable.

Experience with Irex tells me that you need to point rex at that file,
including drive and path before it will execute it. Dunno how Linux would
do that, but I'm sure you get what I mean...

Tag   Days   Start    Next  Command
A     All    00:00    00:45 -fsq 1:387/6          (must be run - yes)
B     All    00:00    00:45 e:\Irex\inbetween.bat (external event, yes)

               R\%/itt


... Mark Owen: "Hey, did you ever hear anything about that beer?
... Fellow SEAL: "You believed that s**t, I bet you voted for change too,
... SUCKER."


--- GoldED+/W32
* Origin: Texas Lone-Star - Texan, American, USAian  (1:387/22)