Getting Started |
4.The program should start running in the background. Use either the #jobs or #ps
#jobs // use this command to check if the program is running
192.168.3.127 – PuTTY
root@Moxa:~# ls | root | 0 | Jun 12 02:14 | ||||
2 | root | ||||||
root | 0 | Jan | 1 | 1970 | |||
1 | root | root | 899 Jun 10 08:11 .bash_history | ||||
1 | root | root | 4996 Jun 12 02:15 | ||||
root@Moxa:~# chmod +x |
|
| |||||
root@Moxa:~# ls | root | 0 | Jun 12 02:14 | ||||
2 | root | ||||||
root | 0 | Jan | 1 | 1970 | |||
1 | root | root | 899 Jun 10 08:11 .bash_history | ||||
1 | root | root | 4996 Jun 12 02:15 |
[1]187
start root@Moxa:~# jobs
[1]+ Running |
| |
root@Moxa:~# |
|
|
NOTE Use the kill command for job number 1 to terminate this program: #kill %1
#ps
192.168.3.127 – PuTTY
[1]+ | Running |
|
| |
root@Moxa:~# ps |
|
| ||
PID | Uid | VmSize Stat Command | ||
1 | root | 1296 | S | init |
2 | root |
| S | [keventd] |
3 | root |
| S | [ksoftirqd_CPU0] |
4 | root |
| S | [kswapd] |
5 | root |
| S | [bdflush] |
6 | root |
| S | [kupdated] |
7 | root |
| S | [mtdblockd] |
8 | root |
| S | [khubd] |
10 | root |
| S | [jffs2_gcd_mtd3] |
32 | root |
| D | [ixp425_csr] |
34 | root |
| S | [ixp425 ixp0] |
36 | root | 1256 | D | [ixp425 ixp1] |
38 | root | S | stdef | |
46 | root | 1368 | S | /usr/sbin/inetd |
52 | root | 4464 | S | /usr/sbin/httpd |
53 | nobody | 4480 | S | /usr/sbin/httpd |
54 | nobody | 4480 | S | /usr/sbin/httpd |
64 | nobody | 4480 | S | /usr/sbin/httpd |
65 | nobody | 4480 | S | /usr/sbin/httpd |
66 | nobody | 4480 | S | /usr/sbin/httpd |
88 | bin | 1460 | S | /sbin/portmap |
100 | root | 1556 | S | /usr/sbin/rpc.statd |
104 | root | 4044 | S | /usr/sbin/snmpd |
106 | root | 2832 | S | /usr/sbin/snmptrapd |
135 | root | 1364 | S | /sbin/cardmgr |
139 | root | 1756 | S | /usr/sbin/rpc.nfsd |
141 | root | 1780 | S | /usr/sbin/rpc.mountd |
148 | root | 2960 | S | /usr/sbin/sshd |
156 | root | 1272 | S | /bin/reportip |
157 | root | 1532 | S | /sbin/getty 115200 ttyS0 |