parameters to shell script

parameters to shell script

Shay Ohayon shay at shayohayon.net
Sun Dec 6 18:47:24 IST 2009


Try running the command its parameters inside quotes (")

for example: ssh user at host "command param1 paramN"

I must say that it is quite difficult to provide you with a solution because
I don't really know what the script does and how does it handles each
parameter, it would be better if you can provide it to me.

good luck

shay

On Sun, Dec 6, 2009 at 5:31 PM, eliyahu cohen <eliyahu.cohen1 at yahoo.com>wrote:

> I have a user called bypass whose defined shell in /etc/passwd is
> /Path/To/bypass.sh
>
> that script takes three parameters. When I run the script from the command
> line the script identifies the parameters. However, when the script is run
> via an ssh command (i.e. ssh bypass at 10.1.1.1 Parm1 Parm2 Parm2) the script
> does not see all three parameters. I've also tried calling the script via
> ssh bypass at 10.1.1.1 /Path/To/bypass.sh Parm1 Parm2 Parm3, but no joy. How
> can I have a script run as the users shell and execute multiple receieved
> parameters?
>
> Thanks,
>
> Eliyahu
>
>
>
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20091206/a9c0ec9e/attachment.html>


More information about the Linux-il mailing list