trying execute blat http://www.blat.net/ shell script. set environmental path variable, , can call blat location command prompt. sending email command line works fine. i'm not able call within shell script.
the (simplified) script
#!/bin/bash blat i get:
$ sh script.sh script.sh: line 2: blat: command not found i tried specifying absolute path c:/windows/system32/blat didn't work either.
there many ways solve this. if run blat bash, can put in /usr/local/bin aka c:\cygwin64\usr\local\bin.
if need run bash , cmd/powershell, windows "out of box" has pretty poor support that. linux/bash path this:
/usr/local/bin:/usr/bin
this great because have system space, , user space programs. windows looks this:
c:\windows\system32;c:\windows as can see default path has system space. bad because encourages people dumb things put user programs alongside protected operating system files. windows needs equivalent of /usr/local/bin, folder on path, ahead of people can dump command line programs. until happens have add own:
move
blat.exec:\users\<user>\documentsadd path:
setx path "%path%;c:\users\<user>\documents" /m
when add windows path, automatically gets added bash path, program should available shells.
Comments
Post a Comment