Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

•Re: Linux: force commands that expect filename args to accept piped input

by merlyn (Sage)
on Feb 24, 2002 at 16:02 UTC ( [id://147172]=note: print w/replies, xml ) Need Help??


in reply to Linux: force commands that expect filename args to accept piped input

If I'm not mistaken, any system that supports /proc/$$/fd/0 also supports /dev/fd/0, so you could just learn to type that instead of carrying your Perl program around. Example:
complex pipe | of commands | nastycommand file1 file2 /dev/fd/0 file3

-- Randal L. Schwartz, Perl hacker

  • Comment on •Re: Linux: force commands that expect filename args to accept piped input
  • Download Code

Replies are listed 'Best First'.
Re: •Re: Linux: force commands that expect filename args to accept piped input
by Felonious (Chaplain) on Feb 24, 2002 at 17:12 UTC
    Thanks! I knew there must have been a simpler solution escaping me.

    -- O thievish Night, Why should'st thou, but for some felonious end, In thy dark lantern thus close up the stars? --Milton

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://147172]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-04-19 10:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found