Search Results

Search: Posts Made By: manishtri88
5,242
Posted By manishtri88
Execute shell script on remote machine
I want to execute a shell script(set of commands) on remote machine and that script takes input from text file(local machine). Please refer below:

ssh user@hostname 'bash -s'< ./test.sh file.txt
...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 07:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy