flowhella / get-flash-videos

Automatically exported from code.google.com/p/get-flash-videos
0 stars 0 forks source link

File Extension (.pl) Required or Not? #369

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1.Install ActivPerl, perl packages, get_flash_videos script and any other items 
according to instructions for Windows provided here.

2.As the instructions suggest, open a command prompt and enter the following 
"perl C:\Flash\get_flash_videos" alone or with valid arguments. My first 
attempt was with arguments trying to install Hulu plugin but I made several 
subsequent attempts with no arguments. 

3.Regardless of whether using arguments or not the only result was the 
following error - "Can't open perl script "c:\flash\get_flash_videos": No such 
file or directory". I was able to get it to work by including the ".pl" file 
extension at the end of "get_flash_videos".

What is the expected output? What do you see instead?

When trying to install the Hulu plugin using this command the expectation was 
to see a success message. When entering "perl C:\Flash\get_flash_videos" at the 
command prompt without any arguments the expectation was to see the version and 
usage dialog which starts with the following - "get_flash_videos version 1.24 
(http://code.google.com/p/get-flash-videos/)" and continues with options and 
arguments for the get_flash_videos script.

Instead, whether using valid arguments for Hulu plugin installation or no 
arguments at all I received the following error - "Can't open perl script 
"c:\flash\get_flash_videos": No such file or directory".

What version of the product are you using? On what operating system?

GET_FLASH_VIDEOS version 1.24 on Windows Vista Home Premium 64bit.

Please provide any additional information below.

First, apologies if this is not easy to follow. This is my first time using 
these tools. The issue was really that the instructions indicated that the 
command to be used did not include the .pl extension. I ensured that the PATH 
settings were all correct as well as the PATHEXT environment variables. Again, 
may not have been or may not be an issue for others but being new I was 
following directions closely and encountered the errors above.

Just in case I have copied the Windows install instructions from this site into 
a text file and attached it to this issue.

Thanks for all your hard work, really is great stuff.

Original issue reported on code.google.com by dragon....@gmail.com on 14 Mar 2012 at 7:45

Attachments:

GoogleCodeExporter commented 8 years ago
I'm not quite sure what your question actually is.

Perl itself doesn't care what extension you use on a script--it simply tries to 
execute the script you give it. The .pl extension is not required.

If you got a "No such file or directory" message, it's because the file wasn't 
there. Maybe you saved it as .pl, but you gave Perl a different name so it 
couldn't find it. Maybe you didn't put the file in the directory you thought 
you did, or maybe you typo'd the command.

The instructions are meant to be illustrative and generic. The actual 
get_flash_videos download file name changes between releases anyway. I thought 
it was pretty obvious that you should replace "get_flash_videos" with whatever 
the exact name of the file you downloaded.

Regardless, I'm glad you got it working, and thanks for your kind words.

Original comment by zakflash...@gmail.com on 14 Mar 2012 at 9:25

GoogleCodeExporter commented 8 years ago
Feeling pretty stupid about now. As you can tell, programming/scripting
aren't my strongest areas. Always more network and hardware. Thanks for the
response.

S7eele

Required or Not?

tries to execute the script you give it. The .pl extension is not required.

wasn't there. Maybe you saved it as .pl, but you gave Perl a different name
so it couldn't find it. Maybe you didn't put the file in the directory you
thought you did, or maybe you typo'd the command.

get_flash_videos download file name changes between releases anyway. I
thought it was pretty obvious that you should replace "get_flash_videos"
with whatever the exact name of the file you downloaded.

Original comment by dragon....@gmail.com on 24 Mar 2012 at 8:01