linux - Bash script to run programs with parameters not working -


hello , reading. beginner when comes using linux question might seem dull of you, couldn't find answer anywhere it. i'm trying run 6 programs using bash script, , each require config file specified parameter.

this i've tried far:

#!/bin/bash ./shout/sc_serv "sc_serv.conf" & ./rshout/sc_serv "sc_serv.conf" & ./dshout/sc_serv "sc_serv.conf" & ./trans/sc_trans "sc_trans_dj.conf" & ./rtrans/sc_trans "sc_trans_dj.conf" & ./dtrans/sc_trans "sc_trans_dj.conf" & 

these give following error:

msg:[config] not find `sc_trans_dj.conf' - prompt config file load warn [config] not find `sc_serv.conf' - looking config file load... 

also tried adding same path configs,

#!/bin/bash ./shout/sc_serv "/shout/sc_serv.conf" & ./rshout/sc_serv "/rshout/sc_serv.conf" & ./dshout/sc_serv "/dshout/sc_serv.conf" & ./trans/sc_trans "/trans/sc_trans_dj.conf" & ./rtrans/sc_trans "/rtrans/sc_trans_dj.conf" & ./dtrans/sc_trans "/dtrans/sc_trans_dj.conf" & 

but gives same error,

2014-05-31 12:44:54     warn    [config] not find `/dshout/sc_serv.conf' - looking config file load... 

paths this:

/home/user/script /home/user/shout/sc_serv /home/user/shout/sc_serv.conf 

and on.

please keep in mind, when answering, looking simplest solution i've seen numerous threads , couldn't understand anything. need work 1 case , not script universally work everything, no path getting , on, if need full path, that's fine also

edit:: thank editing post, new here , don't know how indent things

if you're in home directory think mean:

#!/bin/bash ./shout/sc_serv "./shout/sc_serv.conf" & ... 

note added . @ beginning.

another way give absolute forms instead:

#!/bin/bash ./shout/sc_serv "/home/user/shout/sc_serv.conf" & ... 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -