[HPADM] Perl Script to TCL Script

From: Neeraj Lal (neeraj_lal_at_fastmail.us)
Date: 06/11/04

  • Next message: cenan_at_runbox.com: "[HPADM] summary: cluster passwd problem"
    To: "HPADM LIST" <hpux-admin@dutchworks.nl>
    Date: Fri, 11 Jun 2004 11:35:49 -0400
    
    

    hi Admins

    Can anyone help me I know Perl and Korn Shell Scripting but never did the
    TCL so I need the following code to be converted in TCL from Perl

    My Perl Code is

    my $sec;
    my $min;
    my $hour;
    my $mday;
    my $mon;
    my $year;
    my $wday;
    my $yday;
    my $isdst;

    my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime();

    if ($isdst=0)
    {
    print("no\n");
    $date = &Date_ConvTZ($date,"GMT","CST");
    print $date;
    }
    else
    {print("yes\n");
    $date = &Date_ConvTZ($date,"GMT","CDT");
    print $date;
    }

    but i want the same code in TCL.

    Can anyone help me out in this

    TIA
    Neeraj Lal

    -- 
    http://www.fastmail.fm - IMAP accessible web-mail
    --
                 ---> Please post QUESTIONS and SUMMARIES only!! <---
            To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
           Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
     
     Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
                http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)
    

  • Next message: cenan_at_runbox.com: "[HPADM] summary: cluster passwd problem"

    Relevant Pages

    • Re: Choosing Perl/Python for my particular niche
      ... >I was under the impression that Tcl ... >it's good to know that Tcl is an option to Perl and Python, ... >algorithms for programming coarse grain reconfigurable ...
      (comp.lang.perl.misc)
    • Re: Choosing Perl/Python for my particular niche
      ... >I was under the impression that Tcl ... >it's good to know that Tcl is an option to Perl and Python, ... >algorithms for programming coarse grain reconfigurable ...
      (comp.lang.python)
    • Tcl faster than Perl/Python...but only with tricks...
      ... about if it is possible for Python to beat Perl in a small text matching ... there comes a really fast Tcl solution at the ... $ cat *.htm> bigfile ... The code there for Perl was: ...
      (comp.lang.tcl)
    • Re: Interactive apps with tcl
      ... I am trying to build an interactive test application. ... would like to generate interactive commands to an existing ... I think you will want to look at the Expect extension to Tcl. ... If you prefer to work in Perl, ...
      (comp.lang.tcl)
    • Re: TCL cant do as much as Perl
      ... >> build these bridges in either Java, TCL, or Perl. ... >> When our manager asked which language we should encourage customer to use ... Most customers want the bridge to work ... Perl expertise as opposed to TCL but in most cases the customer doesn't have ...
      (comp.lang.tcl)