Sponsored Content
Top Forums Shell Programming and Scripting how to run non-standard commands in bash script? Post 302441887 by EinsteinMcfly on Monday 2nd of August 2010 11:11:30 PM
Old 08-03-2010
Yes, the path comes back /opt/local/share/nwchem/nwchem. Does this tell anyone anything about why I can't just use it in the .sh script the same way I do other (more standard) commands?

Thanks again for any help.

---------- Post updated at 09:11 PM ---------- Previous update was at 09:01 PM ----------

If it helps, here is what I have in there now:

path=$PATH:/opt/local/share/nwchem/nwchem
nwchem $basis_name$func_name$spin_name".nw"

This gives the error:
./nw_chem_DIMERscript.sh: line 152: nwchem: command not found
 

10 More Discussions You Might Find Interesting

1. Programming

code that reads commands from the standard i/p and executes the commands

Hello all, i've written a small piece of code that will read commands from standard input and executes the commands. Its working fine and is execting the commands well. Accepting arguments too. e.g #mkdir <name of the directory> The problem is that its not letting me change the directory i.e... (4 Replies)
Discussion started by: Phrozen Smoke
4 Replies

2. Shell Programming and Scripting

how to make your bash script run on a machine with csh and bash

hi, i have a script that runs on bash and would like to run it on a machine that has csh and bash. the default setting on that machine is csh. i dont want to change my code to run it with a csh shell. is there any way i can run the script (written in bash) on this machine? in other words is there... (3 Replies)
Discussion started by: npatwardhan
3 Replies

3. Shell Programming and Scripting

Run a shell script from one host which connext to remote host and run the commands

I want to write a script which would run from one host say A and connect to other remote host B and then run rest of commands in that host. I tried connecting from A host to B with SSH but after connecting to host B it just getting me inside Host B command prompt. Rest of the script is not running... (6 Replies)
Discussion started by: SN2009
6 Replies

4. Shell Programming and Scripting

run commands within a script on certain days

Hi, please advise a script, something like this: If ; then do something else ( or for any other day of the week ) do otherthing fi Thanks (5 Replies)
Discussion started by: fed.linuxgossip
5 Replies

5. Shell Programming and Scripting

Logging ALL standard out of a bash script to a log file, but still show on screen

Is it possible to store all standard-out of a bash script and the binaries it calls in a log file AND still display the stdout on screen? I know this is possible to store ALL stdout/stderr of a script to a single log file like: exec 1>&${logFile} exec 2>&1 But running a script with the... (3 Replies)
Discussion started by: ckmehta
3 Replies

6. Shell Programming and Scripting

[bash] run a shell who runs commands

Hi all. On X11 I'm on a shell ...shell_1 (/bin/bash). From here I want to open another shell window shell_2 who executes commands like "ls -l" or programs like ". /program"... so the "result" of commands shows in shell_2 window and not in shell_1. Is that possible ? (4 Replies)
Discussion started by: jerold
4 Replies

7. Shell Programming and Scripting

Run commands in a script in different shells

Hi to all, i have the following problem... i want to run three commands in a script in different shells... the first command is running always and is needed for the second on to run properly... example # Procedure 1 xterm -e exec1 arg1 arg2 # Procedure 2 xterm -e exec2 arg1 arg2 #... (6 Replies)
Discussion started by: paladinaeon
6 Replies

8. IP Networking

How to run an script and its commands via proxy?

Hi, i used this tutorial which tells me to use following example command to proxify traffic from my linux export {http,https,ftp}_proxy=122.228.156.126:80 when i do this command from command line it works and then i curl http://site/ipcheck.php i see its proxified, which is what i want to... (5 Replies)
Discussion started by: postcd
5 Replies

9. Shell Programming and Scripting

How to run several bash commands put in bash command line?

How to run several bash commands put in bash command line without needing and requiring a script file. Because I'm actually a windows guy and new here so for illustration is sort of : $ bash "echo ${PATH} & echo have a nice day!" will do output, for example:... (4 Replies)
Discussion started by: abdulbadii
4 Replies

10. Solaris

Run automated bash commands from sh login shell

I use plink.exe to automate remote commands that return data to Windows machines. This works well on newer servers running Red Hat since the commands were developed for bash and the designated user's login shell is bash. I need to also support older servers which are running Solaris 10 but the... (5 Replies)
Discussion started by: randman1
5 Replies
INSTALLMGR.1(1) 					      Sword Module Utilities						   INSTALLMGR.1(1)

NAME
installmgr - install, list, update and remove SWORD modules SYNOPSIS
installmgr -init installmgr -l installmgr -u [ModuleName] installmgr -s installmgr [-r | -rl | -rd] [RemoteSrcName] installmgr -ri [RemoteSrcName] [ModuleName] installmgr -ll [PATH] installmgr -li [PATH] [ModuleName] DESCRIPTION
A command line utility to manipulate SWORD modules. It can be used to install, remove, list and update SWORD modules, from local and network locations. Please note modules will be installed into /usr/share/sword without using APT. If you use this utility you will not be able to uninstall these modules using apt-get, aptitude, synaptic and similar tools. OPTIONS
-init Creates basic user configuration file. This will overwrite existing one. -l Lists currently installed SWORD modules. -u [ModuleName] Uninstalls module. -s Lists available remote sources [-r | -rl | -rd] [RemoteSrcName] These are used to manipulate remote sources. -r Refreshes remote source. -rl Lists available modules from the remote source. -rd Lists new/updated modules from the remote source. -ri [RemoteSrcName] [ModuleName] Install module from remote source. -ll [PATH] List available modules at a specified local path. -li [PATH] [ModuleName] Install module from local path. Authors This manual page was written by Dmitrijs Ledkovs <dmitrij.ledkov@gmail.com> for Debian project but may be used by others. SEE ALSO
SWORD 1.6.2+dfsg 2012-02-22 INSTALLMGR.1(1)
All times are GMT -4. The time now is 05:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy