Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: redirecting output from a system command to a text file

by mellon85 (Monk)
on Apr 19, 2011 at 18:21 UTC ( [id://900185]=note: print w/replies, xml ) Need Help??


in reply to redirecting output from a system command to a text file

You are on Win and using bash redirection? I'm not familiar at all with the Win environment. As a stupid workaround I would just do
open my $input "./TVT.exe Tes...._235516.pdf|"; open my $output "test.txt" foreach (<$output>) { print $output,$_; }

Replies are listed 'Best First'.
Re^2: redirecting output from a system command to a text file
by mark4444az (Sexton) on Apr 19, 2011 at 18:46 UTC
    Hmm, the problem with that is i need to use the $a variable like this: open my $input "./TVT.exe $a|"; "string found where operator expected" there. I am runniing this on an xp machine using a cygwin console.
      Missing comma,
      open my $input,"TVT.exe Tes...._235516.pdf|" or die "$!";
      there might be an issue with ./

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-18 18:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found