#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2011
    Posts
    1
    Rep Power
    0

    Find script and then run it?


    Hi,

    I'm trying to find a script from the current directory and then run it. Will this work?

    chomp( $version_number= `find . -name get_version.pl | xargs or exec command here?` );


    Sorry, totally lost here.

    Thanks.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2012
    Posts
    830
    Rep Power
    496
    As it is, it is az Unix question.

    But you can explore the directory and find a file in Perl and then run it.

IMN logo majestic logo threadwatch logo seochat tools logo