When using jlogin with the '-s' option , No further output ?-{
Mr. James W. Laferriere
babydr at baby-dragons.com
Thu Apr 3 20:06:54 UTC 2003
Hello John , Hmm, This looks like a one person show , at least
on this maillist . Inline .
On Wed, 2 Apr 2003, john heasley wrote:
> Wed, Apr 02, 2003 at 12:01:34PM -0500, Mr. James W. Laferriere:
> > Hello John , The '-s' option in jlogin sets log_user to 1 by
> no, it sets it to 0 when a script is specified.
> 174 if { $do_script } {
> 175 log_user 0
> 176 } else {
> 177 log_user 1
> 178 }
Here's a good one on me . If I use the -s option & do_script is
set to 0 the script specified in the -s option is not processed .
If set to 1 it does get processed . And the using the log_file
(ie: log_file -a -noappend junk.txt) I am able to get the output
from my sub script . But otherwise nothing gets sent to stdout .
The note above the do_script seems to say that the underlying
script is responsible for sending output , But instead of having
anything to do with output it is input that gets shanghi'd .
Now that I can at last can get output ot appear someplace do
you have any thoughts on getting output to stdout ?
> > default . And I have in my -s scripts set it to 1 as well .
> > Still no output from the router .
> >
> > I have tried 'log_file -a -noappend junk.txt' & it is empty as
> > well . I do not even get the 'send_user' output I have setup to
> > give me (sort of) debug output . I just tried send_error & is
> > swallows that output too !-{
> >
> > Where else can I look ? Tia , JimL
> then i suspect either an error in how you are running jlogin from your
> shell, a typo in the script, or your expect binary is buggered. really
> can not say without seeing the code.
> also, see the examples in util/*.exp.
That is where I stole the basis for the script .
> > On Wed, 2 Apr 2003, john heasley wrote:
> > > Wed, Apr 02, 2003 at 10:29:49AM -0500, Mr. James W. Laferriere:
> > > > Hello All , Every time I use the '-s' option to jlogin the output
> > > > is lost . Or at least I am unable to find to which fiel
> > > > descriptor it is (re-)directed . All help appreciated . JimL
> > > there is no redirection, unless you do so explicitly. output will
> > > appear on stdout (1) and stderr (2), if you tell expect to do so:
> > > log_user 1
--
+------------------------------------------------------------------+
| James W. Laferriere | System Techniques | Give me VMS |
| Network Engineer | P.O. Box 854 | Give me Linux |
| babydr at baby-dragons.com | Coudersport PA 16915 | only on AXP |
+------------------------------------------------------------------+
More information about the Rancid-discuss
mailing list