On Fri, 26 Sep 1997, Rick Macdonald wrote:

> Keith Dart wrote:
> > 
> > On Fri, 26 Sep 1997, Mixer wrote:
> > 
> > > Well this isn't really a Vtcl question but I am using Vtcl and trying to 
>completely learn Tcl/Tk, so here goes.
> > >
> > > I want to do a tail on a file for the last line and then split up the line so I 
>can manipulate the data, so I thought I could do this:
> > >
> > > set b [tail -1 filename]
> > > set c [split $b]
> > 
> > You might try this:
> > 
> > set b [system tail -1 filename]
> > set c [split $b]
> 
> Is that some sort of extention? The normal command is
> 
> set b [exec tail -1 filename]

Oops, bad advice. You're right, 'exec' is preferred. the 'system' command
is both a TclX and expect extension. 

=============================================================================
Keith Dart, Devtest Engineer                   <mailto:[EMAIL PROTECTED]>
Cisco Systems                                    phone: +1.408.527.1391
Network to User Business Unit                    pager: +1.800.365.4578
web page: <http://kdart-pc2.cisco.com>             fax: +1.408.527.3778
=----------------------------------------------------------------------------
MS: Where do you want to go today? Linux: been there, done that.
=============================================================================

---------------------------------------------------------------------------
To unsubscribe from the Visual Tcl mailing list, please send a message
to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
message body (where [EMAIL PROTECTED] is your e-mail address).

Reply via email to