interactive mode ` ` in perl script

From: DGG (tong.yin_at_nectech.co.uk)
Date: 03/02/05

  • Next message: Jim Gibson: "Re: interactive mode ` ` in perl script"
    Date: 2 Mar 2005 09:22:25 -0800
    
    

    I have got a question arsing from my perl program.

    Basically, I want to get the machine date and time, and display it on a
    Tk label.

    I am using ActivePerl, and running on DOS/Windows.
    So I would use `date` to get the current date.

    Though "date" has a silent mode. I am thinking in general, if assume
    "date" only has an interactive mode. So after typing in "date", after
    displaying the current date, the program also awaits an input (new date
    setting or an ENTER) to complete.

    As we are running inside a perl script, how can one imitate an
    interactive input to feed into the program input?

    Thanks guys


  • Next message: Jim Gibson: "Re: interactive mode ` ` in perl script"

    Relevant Pages

    • Re: How to detect present X-Server
      ... >> is there a way to make a perl program find out whether a ... Well -- from a human-issues standpoint, requiring the user to decide ... I then su to some other EUID - suddenly I have a valid DISPLAY ... I'm certain that a tiny 'attempt to connect to the server on ...
      (perl.beginners)
    • Can I prevent the ssh client from silencing banner in interactive mode?
      ... In today's world of legal MumboJumbo and Sarbanes-Oxley, ... interactive mode and prevent the '-q' option or Loglevel quite in the ... we'd like to always display ... a legal banner when one connects interactively to our systems. ...
      (SSH)
    • Re: Sensors and linux 2.6.0-test4-bk8 question
      ... >> If there is any interest, I have a perl program that does a configurable ... >> display for 2.6 ... > That perl script would be nice. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)