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