home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / wizards / 3697 < prev    next >
Encoding:
Text File  |  1992-08-26  |  1.1 KB  |  43 lines

  1. Newsgroups: comp.unix.wizards
  2. Path: sparky!uunet!apiary!milanj
  3. From: milanj@sematech.org (Jon Milan)
  4. Subject: Re: Changing "pg" options
  5. Message-ID: <1992Aug26.171310.22411@apiary.uucp>
  6. Sender: news@apiary.uucp
  7. Nntp-Posting-Host: chile
  8. Organization: SEMATECH Manufacturing Systems Development
  9. References: <1992Aug25.190239.19142@cbfsb.cb.att.com>
  10. Distribution: usa
  11. Date: Wed, 26 Aug 1992 17:13:10 GMT
  12. Lines: 29
  13.  
  14. In article <1992Aug25.190239.19142@cbfsb.cb.att.com> rajeev@cbnewsf.cb.att.com (rajeev.dolas) writes:
  15. >
  16. >
  17. >Howdy all,
  18. >
  19. >    I am trying to find out if there is a way of turning the "!"
  20. >    option off from pg.  Here is something similar to what I am 
  21. >    trying to do:
  22. >
  23. >    main()
  24. >    {
  25. >        char t[25];
  26. >
  27. >        strcpy(t, "pg $HOME/.profile\n");
  28. >        system(t);
  29. >    }
  30. >
  31. >    While running this program I don't want the !<command> option
  32. >    to be available to the user.
  33.  
  34. Just reset the SHELL environment variable in your mail to "/dev/null" or
  35. some other dummy non-shell process.
  36.  
  37. Jon
  38. -- 
  39. Jon Milan         jon_milan@sematech.org      |
  40. SEMATECH Manufacturing Systems Development    |
  41. "is was as was was when was was as is" (pmk)  |
  42. = = = = = = = = = = = = = = = = = = = = = = = =
  43.