|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi
I need to use the following command in a perl script md5sum data.csv>april2001.hsh md5sum is in usr/local/lib/perl5 data.csv is in usr/local/etc/httpd/cgi-bin/data april2001 should be created in same place as data.csv using "md5sum data.csv>april2001.hsh" just gets me the error message: "Can't locate object method "md5sum" via package "data.csv" at /usr/local/etc/httpd/cgi-bin/data/script_name.pl" Anyone any ideas? |
|
#2
|
|||
|
|||
|
Here is how you do that ... mainly you can run any external shell commands with the system (" <shellcommand> " ); syntax
- and md5sum should be able to be run in the shell, so ... system ("md5sum usr/local/etc/httpd/cgi-bin/data/data.csv > usr/local/etc/httpd/cgi-bin/data/april2001"); |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > using md5sum in a script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|