kramer2k Posted April 4, 2008 Share Posted April 4, 2008 Ok, I need to figure out how to run perl scripts... I've got some iphone backups that apparently I can go thorugh and restore...but i need to use perl scripts, but have no idea how to run them.. here's the site... http://www.tuaw.com/2007/07/10/scanning-yo...e-backup-files/ thanks for any help! K Link to comment Share on other sites More sharing options...
macgirl Posted April 4, 2008 Share Posted April 4, 2008 Perl scrips run natively on Mac OS X. Uninstall script of XCode is a perl one. On terminal if you have perl script just type "perl script.pl" or "./script.pl" (if it has the path to the perl interpreter). Link to comment Share on other sites More sharing options...
kramer2k Posted April 4, 2008 Author Share Posted April 4, 2008 Perl scrips run natively on Mac OS X. Uninstall script of XCode is a perl one. On terminal if you have perl script just type "perl script.pl" or "./script.pl" (if it has the path to the perl interpreter). but when I run ./users.../bkupextract.pl it says "No such file or directory" see the .pl file attached bkupextract.pl.zip Link to comment Share on other sites More sharing options...
aprodigy Posted April 4, 2008 Share Posted April 4, 2008 works fine here... remember to set the executable bit (chmod +x bkupextract.pl) or prefix the path to the perl script with a /usr/bin/perl as macgirl said. Link to comment Share on other sites More sharing options...
macgirl Posted April 4, 2008 Share Posted April 4, 2008 even in the file says how to run it: Usage: perl -w bkupextract.pl /Users/Cosmo/Library/Application\ Support/MobileSync/Backup/*/* probably you don't have in your user's PATH "/usr/bin" Link to comment Share on other sites More sharing options...
aprodigy Posted April 4, 2008 Share Posted April 4, 2008 whcih you can check by issueing the command echo $PATH on the command line. in case it's not set there, you can do that temporarily by export PATH=$PATH:/usr/bin or forever by modifying the file ~/.profile and inserting the above command in there edit: /etc/profile would fit too, of course. Link to comment Share on other sites More sharing options...
stroke Posted April 4, 2008 Share Posted April 4, 2008 Also, you tried ./Users/…/script.pl, which is wrong. That's saying <The current directory>/Users/…/script.pl. If you know an absolute path to the file, you just type it in as-is: /Users/…/script.pl. Link to comment Share on other sites More sharing options...
kramer2k Posted April 4, 2008 Author Share Posted April 4, 2008 Sweeeet! got it working and everything restored to the iphone! now pwned and running awsome! Thanks everyone! Link to comment Share on other sites More sharing options...
Recommended Posts