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