Homa
1
Hello,
I have a perl program called snp_hwe.pl
I have another program called hwe_test.run which contains the following:
for file in *.inp
do
cp $file genotype_counts_c.txt
./snp_hwe.exe > $file'.res'
done
I want to change my perl program to an executable program while changing its extension to .exe so the program hwe_test.run can detect it.
Thank you very much
Scott
2
Changing the extension won't help (that's largely a Windows phenomenon). So, unless you are using Cygwin, ...
Run it explicitly with perl or chmod the file so it is executable.
Homa
3
Yes, I have already done that but when I want to run it with hwe_test.run it doesn't detect the file.
Scott
4
Then, perhaps you forgot the "shebang" inside the script?
#!/usr/bin/env perl
or
#!/usr/bin/perl
(or wherever your Perl binaries live)
It would help if you said which OS you are using, and what the error was exactly.