shell - How to execute more than one command in terminal over SSH? -


i'm connecting raspberry pi model b running raspbian via ssh. i'm trying program script run several commands continuously; want these 2 commands run along side each other:

arpspoof -i wlan0 -t 192.168.1.1 192.168.1.100  arpspoof -i wlan0 -t 192.168.1.100 192.168.1.1  

does putting 1 command after in shell script allow them both run together?

you can use nohup run these commands together, i.e:

nohup arpspoof -i wlan0 -t 192.168.1.1 192.168.1.100 > /var/log/logfile1 & nohup arpspoof -i wlan0 -t 192.168.1.100 192.168.1.1 > /var/log/logfile2 & 

Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -