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
Post a Comment