Execute local script requiring arguments on Linux via plink
        Posted  
        
            by 
                c_maker
            
        on Super User
        
        See other posts from Super User
        
            or by c_maker
        
        
        
        Published on 2011-11-16T23:18:08Z
        Indexed on 
            2011/11/17
            1:54 UTC
        
        
        Read the original article
        Hit count: 354
        
Is it possible to execute (from windows) a local script with arguments on a remote linux system?
Here's what I got:
plink 1.2.3.4 -l root -pw mypassword -m hello.sh
Is there a way to do this same thing, but able to give input parameters to hello.sh?
I've tried many things, including:
plink 1.2.3.4 -l root -pw mypassword -m hello.sh input1 input2
In this case it seems that plink thinks that input1 and input2 are its arguments.. which makes sense.
What are my options?
© Super User or respective owner