linux - invalid argument /bin/bash -


i need call prog4 located under /usr/local/bin/prog4 (it c file), , @ point calls system("less /etc/passwd"). i'm trying substitute less executable less script home directory, opens /bin/grade. (i need privileges prog4 file open /bin/grade). created less:

#!/bin/bash  /bin/grade 

file in home directory , made $path start home directory. when call which less returns home directory, when i'm trying call /usr/local/bin/prog4, gives error:

/bash/sh 0: 3: invalid argument 

and have no idea why.

p.s. homework assignment.

your script isn't passing along arguments. add $@ script.

/bin/grade $@ 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -