
08-21-2008, 10:34 AM
|
Re: PuTTY - starting from command line with logging enabled On Thu, 21 Aug 2008 06:22:36 -0700 (PDT), Nomad wrote:
> On Aug 21, 4:18?am, Dale Dellutri wrote:
> > Then do it this way:
> >
> > 1. Modify the Default session to include logging with a
> > ?file name like unixserver-&H-&Y&M&D&T.log in whatever
> > ?directory you choose. ?The H will be filled in with
> > ?the hostname, YMDT with the year, month date time.
> > ?Save the Default session
> >
> > 2. In your batch file, start putty like:
> > ? ?putty.exe -ssh %user%@%host%
> > ?(I think that's the right DOS syntax)
> > ?where %user% and %host% will be filled in as you
> > ?described.
> >
> > This will use the Default session which you already
> > modified to include logging.
> >
> > All of this is described in the documentation at:
> > ?http://www.chiark.greenend.org.uk/~s...utty/docs.html
> I tried doing this. I inserted a fixed log name, nothing fancy with %
> signs and such, enabled logging everything (not just printable
> characters) just to test and saved the default but when I start a
> session, it still starts without the logging enabled.
I just tried this and it worked.
When you set up the "fixed log name", did you first browse to
a folder in which you have write permission? (The default
is probably not writable by you.)
Are you sure you saved the Default? If you bring up PuTTY via
the GUI, are your settings showing in the Session Logging config
panel?
Also, the "fancy" log names use "&" before variable names,
not "%".
--
Dale Dellutri (lose the Q's) |