[SLE] Scripting

From: Michael Satterwhite (michael_at_weblore.com)
Date: 08/31/03

  • Next message: Filipe Joel Almeida: "Re: [SLE] For or against ..Hyperthreading."
    To: SUSE <suse-linux-e@suse.com>
    Date: Sun, 31 Aug 2003 15:40:02 -0500
    
    

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    This is probably either very simple or impossible. If I have a script (Perl,
    Python, whatever), is it possible to execute an external command (say, tar
    - -vt) and pipe the output from stdout into the script I'm currently running? I
    don't see the syntax to do it, but I figured the gurus here would no for
    sure.

    tia
    - ---Michael
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

    iD8DBQE/Ul0jjeziQOokQnARAgjEAJkBo7TqT5hChrGoE74gessxCnFtcQCdG3AJ
    yKa8kZlYic+LwtZhr0HRwqU=
    =8JAS
    -----END PGP SIGNATURE-----

    -- 
    Check the headers for your unsubscription address
    For additional commands send e-mail to suse-linux-e-help@suse.com
    Also check the archives at http://lists.suse.com
    Please read the FAQs: suse-linux-e-faq@suse.com
    

  • Next message: Filipe Joel Almeida: "Re: [SLE] For or against ..Hyperthreading."

    Relevant Pages

    • Re: Learning Tkinter
      ... and how the command option is used to call the function callback. ... gui programming to see if the python programs I have written can be made ... search their computer for this file, execute the python code and then ... This is the meaning of the test on __name__: this magical variable is set to the string '__main__' if and only if the current script is the top-most one, i.e the one you ran python on. ...
      (comp.lang.python)
    • Re: Windows and python execution
      ... Some of the confusion probably comes from which installation people ... I used the latest ActiveState distribution of Python. ... your script will execute from any location on the machine. ... > The ability to run the script with just "scriptname.py" comes from, ...
      (comp.lang.python)
    • Re: Platform independent code?
      ... Python is a platform independent language, ... can execute the script by doucle-clicking on it. ...
      (comp.lang.python)
    • Re: Embedded python
      ... > I have embedded python and want to execute python scripts from my ... > times same script again & again. ... > I am facing some problems, especially if i try to execute the same ...
      (comp.lang.python)
    • Re: Assertion for python scripts
      ... > python to an executable script? ... AssertionError: ASSERTTION! ... bash: ./assert.pyo: cannot execute binary file ... Your main script should contain just a few lines; import the other modules from inside your main script. ...
      (comp.lang.python)