home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / wizards / 3687 < prev    next >
Encoding:
Text File  |  1992-08-25  |  869 b   |  38 lines

  1. Newsgroups: comp.unix.wizards
  2. Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbfsb!cbnewsf.cb.att.com!rajeev
  3. From: rajeev@cbnewsf.cb.att.com (rajeev.dolas)
  4. Subject: Changing "pg" options
  5. Message-ID: <1992Aug25.190239.19142@cbfsb.cb.att.com>
  6. Sender: news@cbfsb.cb.att.com
  7. Organization: AT&T
  8. Distribution: usa
  9. Date: Tue, 25 Aug 1992 19:02:39 GMT
  10. Lines: 26
  11.  
  12.  
  13.  
  14. Howdy all,
  15.  
  16.     I am trying to find out if there is a way of turning the "!"
  17.     option off from pg.  Here is something similar to what I am 
  18.     trying to do:
  19.  
  20.     main()
  21.     {
  22.         char t[25];
  23.  
  24.         strcpy(t, "pg $HOME/.profile\n");
  25.         system(t);
  26.     }
  27.  
  28.     While running this program I don't want the !<command> option
  29.     to be available to the user.
  30.  
  31.     Is there a simple way of doing this?  I don't want to reinvent the
  32.     wheel and write my own pg (if possible).
  33.  
  34.     Thanks in advance.
  35.  
  36.     Raj Dolas.
  37.  
  38.