home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.wizards
- Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbfsb!cbnewsf.cb.att.com!rajeev
- From: rajeev@cbnewsf.cb.att.com (rajeev.dolas)
- Subject: Changing "pg" options
- Message-ID: <1992Aug25.190239.19142@cbfsb.cb.att.com>
- Sender: news@cbfsb.cb.att.com
- Organization: AT&T
- Distribution: usa
- Date: Tue, 25 Aug 1992 19:02:39 GMT
- Lines: 26
-
-
-
- Howdy all,
-
- I am trying to find out if there is a way of turning the "!"
- option off from pg. Here is something similar to what I am
- trying to do:
-
- main()
- {
- char t[25];
-
- strcpy(t, "pg $HOME/.profile\n");
- system(t);
- }
-
- While running this program I don't want the !<command> option
- to be available to the user.
-
- Is there a simple way of doing this? I don't want to reinvent the
- wheel and write my own pg (if possible).
-
- Thanks in advance.
-
- Raj Dolas.
-
-