home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / perl / 5833 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  1.3 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!rutgers!concert!sas!mozart.unx.sas.com!sasswb
  2. From: sasswb@unx.sas.com (Scott Bass)
  3. Newsgroups: comp.lang.perl
  4. Subject: What's the difference between `command` and system('command')?
  5. Message-ID: <sasswb.716131013@k2>
  6. Date: 10 Sep 92 13:16:53 GMT
  7. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  8. Organization: SAS Institute Inc.
  9. Lines: 20
  10. Nntp-Posting-Host: k2.unx.sas.com
  11.  
  12. Sorry for the basic question, but I couldn't find this in the Camel book.
  13.  
  14. What the difference between saying `some Unix command` and
  15. system('some Unix command')?  Are they synonymous?  Are there situations
  16. where one is better than the other?
  17.  
  18. Finally, what I need to do is export the DISPLAY variable from a PERL
  19. script that's submitted via cron.  I was just going to give the
  20. "export DISPLAY=value" (ksh) command.  If there is a better PERL way of
  21. doing it, please let me know.
  22.  
  23. BTW, I'm running HP-UX, if that matters.
  24.  
  25. Thanks,
  26.  
  27. ------------------------------------------------------------------------------
  28. Scott Bass                           |  SAS Institute Inc.
  29. Integrated Systems, A216, x6975      |  SAS Campus Drive, Cary, NC  27513-2414
  30. sasswb@k2.unx.sas.com                |  (919) 677-8001 x6975
  31. ------------------------------------------------------------------------------
  32.