Re: including a path in a batch run



Ela <ela@xxxxxxxxxx> wrote:
What is the syntax of including a variable in this batch run file? Thanks a
lot

Are you trying to write a DOS-style batch file on Solaris? That won't
work.

What does the first line of your script say? If you're trying to write
a shellscript on any Unix, the first line should start with "#!" with
the path to shell afterward.

$blastloc = "~/bin/blast-2.2.18/bin/";

At a guess? $blastloc holds no value. So, since you've used '$', the
shell is substituting the value of blastloc into the script... which, right
now is nothing.

So that line becomes:

= "~/bin/blast-2.2.18/bin/";

Which makes no sense.

Use:

blastloc = "~/bin/blast-2.2.18/bin/";

I'd also recommend picking up a book on Unix shell scripting.


--
Brandon Hume - hume -> BOFH.Ca, http://WWW.BOFH.Ca/
.



Relevant Pages

  • Re: detect shell script language
    ... In the 'old' days, when a user typed in a command, the interactive shell would immediately pass it off to 'exec' to execute. ... So, on return from exec with an error status, the shell would fork a copy of itself to try and run the script. ... As a result of the above, it was hard to tell whether the script was a Bourne shell or C shell, so the convention was introduced of using the Bourne shell no op command, as the first line in a Bourne shell script. ...
    (Debian-User)
  • Re: Call for input on comp.unix.shell FAQ
    ... >> questions and just tell people to FAQ it. ... The other level is how to write shell scripts. ... How can I remove whitespace characters within file names? ... Why one shouldn't use "echo" in a script? ...
    (comp.unix.shell)
  • SHELLdorado Newsletter 1/2003 - July 6th, 2003
    ... The "SHELLdorado Newsletter" covers UNIX shell script related ...
    (comp.unix.admin)
  • SHELLdorado Newsletter 1/2003 - July 6th, 2003
    ... The "SHELLdorado Newsletter" covers UNIX shell script related ...
    (comp.unix.questions)
  • SHELLdorado Newsletter 1/2003 - July 6th, 2003
    ... The "SHELLdorado Newsletter" covers UNIX shell script related ...
    (comp.unix.shell)