2

I want to run two commands on terminal on my virtual machine at the same time. I have this as of now:

sudo ptpd -c -g -b eth1 -h -D; sudo tcpdump -nni eth1 -e icmp[icmptype] == 8 -w capmasv6.pcap

However, the tcpdump command only starts running when I press CtrlC, and I don't want to cancel the first command.

If I just open two different terminals and write the command in each, is that fine or will it not work as I want it to?

1 Answer 1

5

Running each command in a different terminal will work; you can also start them in a single terminal with & at the end of the first to put it in the background (see Run script and not lose access to prompt / terminal):

sudo ptpd -c -g -b eth1 -h -D &
sudo tcpdump -nni eth1 -e icmp[icmptype] == 8 -w capmasv6.pcap

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .