| 302 | drwx------ 2 mitty mitty 22 May 18 13:51 ssh-qAiiolp854 |
| 303 | }}} |
| 304 | |
| 305 | == サブシェル == |
| 306 | * /home/mitty/crontest |
| 307 | {{{ |
| 308 | #!/bin/sh |
| 309 | |
| 310 | export LANG=C |
| 311 | |
| 312 | ( |
| 313 | |
| 314 | touch /tmp/cron.$$.`date +%T.%N` |
| 315 | ls -l /tmp 2>&1 | mail $LOGNAME |
| 316 | |
| 317 | sleep 60 |
| 318 | |
| 319 | touch /tmp/cron.$$.`date +%T.%N` |
| 320 | ls -l /tmp 2>&1 | mail $LOGNAME |
| 321 | |
| 322 | ) >/dev/null 2>&1 & |
| 323 | }}} |
| 324 | |
| 325 | * pstree -ap |
| 326 | {{{ |
| 327 | ├─cron,662 |
| 328 | ├─crontest,3343 /home/mitty/crontest |
| 329 | │ └─sleep,3351 60 |
| 330 | }}} |
| 331 | |
| 332 | * mail |
| 333 | {{{ |
| 334 | Mail version 8.1.2 01/15/2001. Type ? for help. |
| 335 | "/var/mail/mitty": 2 messages 2 new |
| 336 | >N 1 mitty@lucid.mitty Tue May 18 17:24 15/555 |
| 337 | N 2 mitty@lucid.mitty Tue May 18 17:25 16/625 |
| 338 | & |
| 339 | Message 1: |
| 340 | From mitty@lucid.mitty.jp Tue May 18 17:24:01 2010 |
| 341 | X-Original-To: mitty |
| 342 | To: mitty@lucid.mitty.jp |
| 343 | Date: Tue, 18 May 2010 17:24:01 +0900 (JST) |
| 344 | From: mitty@lucid.mitty.jp (mitty) |
| 345 | |
| 346 | total 0 |
| 347 | -rw-r--r-- 1 mitty mitty 0 May 18 17:24 cron.3342.17:24:01.565319416 |
| 348 | drwx------ 2 mitty mitty 22 May 18 13:51 ssh-qAiiolp854 |
| 349 | |
| 350 | & |
| 351 | Message 2: |
| 352 | From mitty@lucid.mitty.jp Tue May 18 17:25:01 2010 |
| 353 | X-Original-To: mitty |
| 354 | To: mitty@lucid.mitty.jp |
| 355 | Date: Tue, 18 May 2010 17:25:01 +0900 (JST) |
| 356 | From: mitty@lucid.mitty.jp (mitty) |
| 357 | |
| 358 | total 0 |
| 359 | -rw-r--r-- 1 mitty mitty 0 May 18 17:24 cron.3342.17:24:01.565319416 |
| 360 | -rw-r--r-- 1 mitty mitty 0 May 18 17:25 cron.3342.17:25:01.614828392 |