Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Capturing bash output without displaying STOUT in terminal

by edimusrex (Monk)
on Sep 08, 2016 at 15:53 UTC ( [id://1171405]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    my $git = system('git fetch --tags');
    
    print "What's here? --- $git\n";
    
  2. or download this
    my $git = system('git fetch --tags &> /dev/null');
    
  3. or download this
    git fetch --tags &> /tmp/git.txt
    
  4. or download this
    #!/usr/bin/perl
    
    ...
            print "v$newest is greater than the running version v$running_
    +version\n";
        }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-25 19:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found