Ron Lawver - INA <[EMAIL PROTECTED]> wrote:
> I'm really new to this visual tcl thing,  but like it so far.
> What I'm trying to do (through vtcl) is to build a window with a button
that
> when pushed 
> will simply show the output of a tail command (example tail -100
> /var/adm/messages) into
> either that window, or another one.  Any ideas?
> Thanks.
> 
> Ron
> 
The ex. below is from the tcl help file. You use the command line arguments
just like C language(you pass them to main() ). But you must parse them in
order to use as you like.

main(argc, argv)
        int argc;
        char *argv[];
{
        ...

        if (Tk_ParseArgv(interp, tkwin, &argc, argv, argTable, 0) != TCL_OK) {
                fprintf(stderr, "%s\n", interp->result);
                exit(1);
        }

        /*
         * Remainder of the program.
         */
}


Hope this leads the way...

Cheers,
Mert

____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1
---------------------------------------------------------------------------
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