home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / perl / 7784 < prev    next >
Encoding:
Text File  |  1993-01-12  |  608 b   |  19 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!hpscit.sc.hp.com!news.dtc.hp.com!srgenprp!chrise
  3. From: chrise@sr.hp.com (Chris Eich)
  4. Subject: Re: How to get to $? of /bin/sh
  5. Sender: news@srgenprp.sr.hp.com (placeholder for future)
  6. Message-ID: <C0rLIu.3Cs@srgenprp.sr.hp.com>
  7. Date: Tue, 12 Jan 1993 23:35:17 GMT
  8. References: <guy.726876346@tdsb-s>
  9. Organization: HP Sonoma County (SRSD/MWTD/MID)
  10. X-Newsreader: TIN [version 1.1 PL8.1]
  11. Lines: 6
  12.  
  13. It works for me (note that the status is shifted 8 bits as in wait(2)):
  14.  
  15. $ perl -e '`cp >/dev/null 2>&1`;print $?, "\n"'
  16. 256
  17.  
  18. Chris
  19.