Need a Bash file to run a perl script.
This is the Perl file.
#!/usr/bin/perl -w
use strict;
system "fastacmd -s $Q -d $NewQuery -o ./gifiles/$Q.$NewQuery.txt";
I have left alot out to avoid complications when understanding this script. Before using a bash command, the script did work with the variables defined.
Here is the Bash script
#!/bin/bash
#$ -o $HOME/xREPLaunch_$JOB_ID.out
#$ -e $HOME/xREPLaunch_$JOB_ID.err
cd $HOME/Labwork/Dbfiles/results
#$ -cwd
perl xREPredoTop.pl
For some reason I keep getting this error
Can't exec "fastacmd": No such file or directory at xREPredoTop.pl line 78, <IN> line 1.
Really confused to why this is not working.
which fastacmd
might be handy, or to inspect what$ENV{PATH}
contains in the perl script, to see what directories it is looking for things in. – thrig Aug 20 at 19:37echo "$PATH"
and ofls -l /path/to/fastacmd
(with the right path to the script). – Gilles Aug 20 at 21:48