[plug] dumb Perl Q
Sol
solhanna at dingoblue.net.au
Wed Mar 20 17:25:50 WST 2002
Thanks Richard and Trent,
I got the script "thumb.pl"(
http://www.wiredfool.com/discuss/msgReader$206) to execute from my home
directory easy-peasy. But there are syntax errors in the script!
I'm going to look carefully at the error message and see if I can get
this script to work the way it supposed to. It may have been a dodgy
cut'n'paste on my part. But at least I've got a foot in the door now!
Ta,
Sol
Richard Henry wrote:
>You don't install perl scripts, you just run them.
>
>Assuming the perl executable is located at /usr/bin/perl, you would run the
>script like this:
>
>1) Go into the directory your script is in (it can be anywhere, your home
>dir, whatever).
>
>2) Make sure the first line in the script points to your perl executable,
>eg:
>
> #!/usr/bin/perl (in this case)
>
>3) Make the script executable
>
> chmod +x myScriptName
>
>4) Run the script
>
> ./myScriptName <whatever arguments you need to pass it>
>
>Done.
>Rich.
>
>>-----Original Message-----
>>From: Sol [mailto:solhanna at dingoblue.net.au]
>>Sent: Wednesday, 20 March 2002 5:00 PM
>>To: plug at plug.linux.org.au
>>Subject: [plug] dumb Perl Q
>>
>>
>>I've recently been working with digital photos for the first time and
>>having spent several hours changing the resolution of 100s of jpegs I
>>realized I'd been doing it wrong. A hunt on the internet
>>helped me come
>>across a Perl script that uses Imagemagick to make thumbnails out of
>>jpegs a whole directory at a time. The problem is I don't
>>know the first
>>thing about how Perl works!
>>All I need to know though is how to "install" the script. The
>>page gave
>>instructions on how to run the script but assumed a knowledge
>>of Perl. Do I save it in /usr/local/src (Or somewhere else)?
>>Do I need to compile the source using some sort of compiler (like gcc
>>but for perl)?
>>
>>This really could make things way easy. If only my little, pea brain
>>knew how. [:-[]
>>
>>thanks,
>>sol
>>
>>
>
>
More information about the plug
mailing list