home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / question / 15794 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  15.8 KB

  1. Xref: sparky comp.unix.questions:15794 comp.unix.shell:5447 news.answers:5365
  2. Path: sparky!uunet!spool.mu.edu!enterpoop.mit.edu!senator-bedfellow.mit.edu!senator-bedfellow.mit.edu!usenet
  3. From: tmatimar@empress.com (Ted M A Timar)
  4. Newsgroups: comp.unix.questions,comp.unix.shell,news.answers
  5. Subject: Changes to "Unix - Frequently Asked Questions" [Frequent posting]
  6. Supersedes: <unix-faq/faq/diff_726386543@athena.mit.edu>
  7. Followup-To: comp.unix.questions
  8. Date: 21 Jan 1993 06:03:04 GMT
  9. Organization: Empress Software
  10. Lines: 397
  11. Approved: news-answers-request@MIT.Edu
  12. Distribution: world
  13. Expires: 18 Feb 1993 06:02:22 GMT
  14. Message-ID: <unix-faq/faq/diff_727596142@athena.mit.edu>
  15. NNTP-Posting-Host: pit-manager.mit.edu
  16. X-Last-Updated: 1992/12/09
  17.  
  18. Archive-name: unix-faq/faq/diff
  19.  
  20. *** /tmp/,RCSt1a18351    Fri Dec  4 07:46:32 1992
  21. --- contents    Fri Dec  4 07:38:52 1992
  22. ***************
  23. *** 2,12 ****
  24.   Newsgroups: comp.unix.questions,comp.unix.shell,news.answers
  25.   Followup-To: comp.unix.questions
  26.   Organization: Empress Software
  27. ! Subject: Frequently Asked Questions about Unix (index) [Biweekly posting]
  28.   Approved: news-answers-request@MIT.Edu
  29.   
  30. ! Archive-name: unix-faq/contents
  31. ! Version: $Id: contents,v 2.0 92/10/20 12:06:12 tmatimar Exp $
  32.   
  33.   The following seven articles contain the answers to some Frequently Asked
  34.   Questions often seen in comp.unix.questions and comp.unix.shell.
  35. --- 2,12 ----
  36.   Newsgroups: comp.unix.questions,comp.unix.shell,news.answers
  37.   Followup-To: comp.unix.questions
  38.   Organization: Empress Software
  39. ! Subject: Unix - Frequently Asked Questions (Contents) [Frequent posting]
  40.   Approved: news-answers-request@MIT.Edu
  41.   
  42. ! Archive-name: unix-faq/faq/contents
  43. ! Version: $Id: contents,v 2.1 92/12/04 07:43:28 tmatimar Exp $
  44.   
  45.   The following seven articles contain the answers to some Frequently Asked
  46.   Questions often seen in comp.unix.questions and comp.unix.shell.
  47. ***************
  48. *** 23,28 ****
  49. --- 23,29 ----
  50.          they already knew all of the answers.
  51.         5.*) Questions pertaining to the various shells, and the differences.
  52.         6.*) An overview of Unix variants.
  53. +       7.*) An comparison of configuration management systems (RCS, SCCS).
  54.   
  55.   The following questions are answered:
  56.   
  57. *** /tmp/,RCSt1a18351    Fri Dec  4 07:46:32 1992
  58. --- part1    Fri Dec  4 07:38:53 1992
  59. ***************
  60. *** 2,12 ****
  61.   Newsgroups: comp.unix.questions,comp.unix.shell,news.answers
  62.   Followup-To: comp.unix.questions
  63.   Organization: Empress Software
  64. ! Subject: Frequently Asked Questions about Unix (1/7) [Biweekly posting]
  65.   Approved: news-answers-request@MIT.Edu
  66.   
  67. ! Archive-name: unix-faq/part1
  68. ! Version: $Id: part1,v 2.0 92/10/20 12:06:59 tmatimar Exp $
  69.   
  70.   These seven articles contain the answers to some Frequently Asked
  71.   Questions often seen in comp.unix.questions and comp.unix.shell.
  72. --- 2,12 ----
  73.   Newsgroups: comp.unix.questions,comp.unix.shell,news.answers
  74.   Followup-To: comp.unix.questions
  75.   Organization: Empress Software
  76. ! Subject: Unix - Frequently Asked Questions (1/7) [Frequent posting]
  77.   Approved: news-answers-request@MIT.Edu
  78.   
  79. ! Archive-name: unix-faq/faq/part1
  80. ! Version: $Id: part1,v 2.1 92/12/04 07:43:43 tmatimar Exp $
  81.   
  82.   These seven articles contain the answers to some Frequently Asked
  83.   Questions often seen in comp.unix.questions and comp.unix.shell.
  84. *** /tmp/,RCSt1a18351    Fri Dec  4 07:46:33 1992
  85. --- part2    Fri Dec  4 07:38:53 1992
  86. ***************
  87. *** 2,12 ****
  88.   Newsgroups: comp.unix.questions,comp.unix.shell,news.answers
  89.   Followup-To: comp.unix.questions
  90.   Organization: Empress Software
  91. ! Subject: Frequently Asked Questions about Unix (2/7) [Biweekly posting]
  92.   Approved: news-answers-request@MIT.Edu
  93.   
  94. ! Archive-name: unix-faq/part2
  95. ! Version: $Id: part2,v 2.0 92/10/20 12:07:03 tmatimar Exp $
  96.   
  97.   These seven articles contain the answers to some Frequently Asked
  98.   Questions often seen in comp.unix.questions and comp.unix.shell.
  99. --- 2,12 ----
  100.   Newsgroups: comp.unix.questions,comp.unix.shell,news.answers
  101.   Followup-To: comp.unix.questions
  102.   Organization: Empress Software
  103. ! Subject: Unix - Frequently Asked Questions (2/7) [Frequent posting]
  104.   Approved: news-answers-request@MIT.Edu
  105.   
  106. ! Archive-name: unix-faq/faq/part2
  107. ! Version: $Id: part2,v 2.1 92/12/04 07:43:45 tmatimar Exp $
  108.   
  109.   These seven articles contain the answers to some Frequently Asked
  110.   Questions often seen in comp.unix.questions and comp.unix.shell.
  111. ***************
  112. *** 586,596 ****
  113.         has already been redirected so only stderr actually winds up in
  114.         stderr_file.
  115.   
  116. !       Sometimes it's easier to let sh do the work for you.
  117.   
  118. !     sh -c 'command >stdout_file 2>stderr_file'
  119.   
  120.   2.10) How do I tell inside .cshrc if I'm a login shell?
  121.   
  122.         When people ask this, they usually mean either
  123.   
  124. --- 586,600 ----
  125.         has already been redirected so only stderr actually winds up in
  126.         stderr_file.
  127.   
  128. !       If what you want is to avoid redirecting stdout at all, let sh
  129. !       do it for you.
  130.   
  131. !     sh -c 'command 2>stderr_file'
  132.   
  133.   2.10) How do I tell inside .cshrc if I'm a login shell?
  134. +       From: msb@sq.com (Mark Brader)
  135. +       Date: Mon, 26 Oct 1992 20:15:00 -0500
  136.   
  137.         When people ask this, they usually mean either
  138.   
  139. *** /tmp/,RCSt1a18351    Fri Dec  4 07:46:36 1992
  140. --- part3    Fri Dec  4 07:38:54 1992
  141. ***************
  142. *** 2,12 ****
  143.   Newsgroups: comp.unix.questions,comp.unix.shell,news.answers
  144.   Followup-To: comp.unix.questions
  145.   Organization: Empress Software
  146. ! Subject: Frequently Asked Questions about Unix (3/7) [Biweekly posting]
  147.   Approved: news-answers-request@MIT.Edu
  148.   
  149. ! Archive-name: unix-faq/part3
  150. ! Version: $Id: part3,v 2.0 92/10/20 12:07:07 tmatimar Exp $
  151.   
  152.   These seven articles contain the answers to some Frequently Asked
  153.   Questions often seen in comp.unix.questions and comp.unix.shell.
  154. --- 2,12 ----
  155.   Newsgroups: comp.unix.questions,comp.unix.shell,news.answers
  156.   Followup-To: comp.unix.questions
  157.   Organization: Empress Software
  158. ! Subject: Unix - Frequently Asked Questions (3/7) [Frequent posting]
  159.   Approved: news-answers-request@MIT.Edu
  160.   
  161. ! Archive-name: unix-faq/faq/part3
  162. ! Version: $Id: part3,v 2.1 92/12/04 07:43:49 tmatimar Exp $
  163.   
  164.   These seven articles contain the answers to some Frequently Asked
  165.   Questions often seen in comp.unix.questions and comp.unix.shell.
  166. *** /tmp/,RCSt1a18351    Fri Dec  4 07:46:39 1992
  167. --- part4    Fri Dec  4 07:38:54 1992
  168. ***************
  169. *** 2,12 ****
  170.   Newsgroups: comp.unix.questions,comp.unix.shell,news.answers
  171.   Followup-To: comp.unix.questions
  172.   Organization: Empress Software
  173. ! Subject: Frequently Asked Questions about Unix (4/7) [Biweekly posting]
  174.   Approved: news-answers-request@MIT.Edu
  175.   
  176. ! Archive-name: unix-faq/part4
  177. ! Version: $Id: part4,v 2.0 92/10/20 12:07:10 tmatimar Exp $
  178.   
  179.   These seven articles contain the answers to some Frequently Asked
  180.   Questions often seen in comp.unix.questions and comp.unix.shell.
  181. --- 2,12 ----
  182.   Newsgroups: comp.unix.questions,comp.unix.shell,news.answers
  183.   Followup-To: comp.unix.questions
  184.   Organization: Empress Software
  185. ! Subject: Unix - Frequently Asked Questions (4/7) [Frequent posting]
  186.   Approved: news-answers-request@MIT.Edu
  187.   
  188. ! Archive-name: unix-faq/faq/part4
  189. ! Version: $Id: part4,v 2.1 92/12/04 07:43:53 tmatimar Exp $
  190.   
  191.   These seven articles contain the answers to some Frequently Asked
  192.   Questions often seen in comp.unix.questions and comp.unix.shell.
  193. ***************
  194. *** 438,443 ****
  195. --- 438,447 ----
  196.   
  197.   4.9)  How do I keep track of people who are fingering me?
  198.   
  199. +       From: jik@pit-manager.MIT.EDU (Jonathan I. Kamens)
  200. +       From: malenovi@plains.NoDak.edu (Nikola Malenovic)
  201. +       Date: Mon, 23 Nov 1992 16:01:45 -0600
  202.         Generally, you can't find out the userid of someone who is
  203.         fingering you from a remote machine.  You may be able to
  204.         find out which machine the remote request is coming from.
  205. ***************
  206. *** 466,481 ****
  207.         For more information join the rfc931-users mailing list,
  208.         rfc931-users-request@kramden.acf.nyu.edu.
  209.   
  210. !       There are two caveats relating to this answer.  The first is that
  211. !       many NFS systems won't allow the recognize the named pipe
  212. !       correctly.  This means that trying to read the pipe on another
  213. !       machine will either block until it times out, or see it as a
  214. !       zero-length file, and never print it.
  215.   
  216.         The second problem is that on many systems, fingerd checks that
  217.         the .plan file contains data (and is readable) before trying to
  218. !       read it.  This will not cause remote fingers to miss your .plan
  219. !       file entirely.
  220.   
  221.   4.10) Is it possible to reconnect a process to a terminal after it has
  222.         been disconnected, e.g. after starting a program in the background
  223. --- 470,493 ----
  224.         For more information join the rfc931-users mailing list,
  225.         rfc931-users-request@kramden.acf.nyu.edu.
  226.   
  227. !       There are three caveats relating to this answer.  The first is
  228. !       that many NFS systems won't recognize the named pipe correctly.
  229. !       This means that trying to read the pipe on another machine will
  230. !       either block until it times out, or see it as a zero-length file,
  231. !       and never print it.
  232.   
  233.         The second problem is that on many systems, fingerd checks that
  234.         the .plan file contains data (and is readable) before trying to
  235. !       read it.  This will cause remote fingers to miss your .plan file
  236. !       entirely.
  237. !       The third problem is that a system that supports named pipes
  238. !       usually has a fixed number of named pipes available on the
  239. !       system at any given time - check the kernel config file and
  240. !       FIFOCNT option.  If the number of pipes on the system exceeds the
  241. !       FIFOCNT value, the system blocks new pipes until somebody frees
  242. !       the resources.  The reason for this is that buffers are allocated
  243. !       in a non-paged memory.
  244.   
  245.   4.10) Is it possible to reconnect a process to a terminal after it has
  246.         been disconnected, e.g. after starting a program in the background
  247. *** /tmp/,RCSt1a18351    Fri Dec  4 07:46:40 1992
  248. --- part5    Fri Dec  4 07:38:55 1992
  249. ***************
  250. *** 2,12 ****
  251.   Newsgroups: comp.unix.questions,comp.unix.shell,news.answers
  252.   Followup-To: comp.unix.questions
  253.   Organization: Empress Software
  254. ! Subject: Frequently Asked Questions about Unix (5/7) [Biweekly posting]
  255.   Approved: news-answers-request@MIT.Edu
  256.   
  257. ! Archive-name: unix-faq/part5
  258. ! Version: $Id: part5,v 2.0 92/10/20 12:07:13 tmatimar Exp $
  259.   
  260.   These seven articles contain the answers to some Frequently Asked
  261.   Questions often seen in comp.unix.questions and comp.unix.shell.
  262. --- 2,12 ----
  263.   Newsgroups: comp.unix.questions,comp.unix.shell,news.answers
  264.   Followup-To: comp.unix.questions
  265.   Organization: Empress Software
  266. ! Subject: Unix - Frequently Asked Questions (5/7) [Frequent posting]
  267.   Approved: news-answers-request@MIT.Edu
  268.   
  269. ! Archive-name: unix-faq/faq/part5
  270. ! Version: $Id: part5,v 2.1 92/12/04 07:43:55 tmatimar Exp $
  271.   
  272.   These seven articles contain the answers to some Frequently Asked
  273.   Questions often seen in comp.unix.questions and comp.unix.shell.
  274. ***************
  275. *** 87,93 ****
  276.         Date: Wed, 7 Oct 92 14:28:18 -0500
  277.   
  278.         All of the major shells other than sh have aliases, but they
  279. !       don't all work the same way.  For example, some don't except
  280.         arguments.
  281.         
  282.         Although not strictly equivalent, shell functions (which exist in
  283. --- 87,93 ----
  284.         Date: Wed, 7 Oct 92 14:28:18 -0500
  285.   
  286.         All of the major shells other than sh have aliases, but they
  287. !       don't all work the same way.  For example, some don't accept
  288.         arguments.
  289.         
  290.         Although not strictly equivalent, shell functions (which exist in
  291. ***************
  292. *** 113,127 ****
  293.   5.5)  How can I tell if I am running an interactive shell?
  294.   
  295.         From: wicks@dcdmjw.fnal.gov (Matthew Wicks)
  296. !       Date: Wed, 7 Oct 92 14:28:18 -0500
  297.   
  298. !       In the Bourne shell category look for the variable $PROMPT.  In
  299. !       the C shell category, look for the variable $prompt.
  300.   
  301.   5.6)  What "dot" files do the various shells use?
  302.   
  303.         From: wicks@dcdmjw.fnal.gov (Matthew Wicks)
  304. !       Date: Wed, 7 Oct 92 14:28:18 -0500
  305.   
  306.         Although this may not be a complete listing, this provides the
  307.         majority of information.
  308. --- 113,139 ----
  309.   5.5)  How can I tell if I am running an interactive shell?
  310.   
  311.         From: wicks@dcdmjw.fnal.gov (Matthew Wicks)
  312. !       From: dws@ssec.wisc.edu (DaviD W. Sanderson)
  313. !       Date: Fri, 23 Oct 92 11:59:19 -0600
  314.   
  315. !       In the C shell category, look for the variable $prompt.
  316.   
  317. +       In the Bourne shell category, you can look for the variable $PS1,
  318. +       however, it is better to check the variable $-.  If $- contains
  319. +       an 'i', the shell is interactive.  Test like so:
  320. +       case $- in
  321. +       *i*)    # do things for interactive shell
  322. +               ;;
  323. +       *)      # do things for non-interactive shell
  324. +               ;;
  325. +       esac
  326.   5.6)  What "dot" files do the various shells use?
  327.   
  328.         From: wicks@dcdmjw.fnal.gov (Matthew Wicks)
  329. !       From: tmb@idiap.ch (Thomas M. Breuel)
  330. !       Date: Wed, 28 Oct 92 03:30:36 +0100
  331.   
  332.         Although this may not be a complete listing, this provides the
  333.         majority of information.
  334. ***************
  335. *** 178,184 ****
  336.         Start-up (in this order):
  337.                 /etc/profile  - login shells.
  338.                 .bash_profile - login shells.
  339. !               .bashrc       - interactive shells.
  340.   
  341.         Others:
  342.                 .inputrc      - Readline initialization.
  343. --- 190,201 ----
  344.         Start-up (in this order):
  345.                 /etc/profile  - login shells.
  346.                 .bash_profile - login shells.
  347. !               .profile      - login if no .bash_profile is present.
  348. !               .bashrc       - interactive non-login shells.
  349. !               $ENV          - always, if it is set.
  350. !       Upon termination:
  351. !               .bash_logout  - login shells.
  352.   
  353.         Others:
  354.                 .inputrc      - Readline initialization.
  355. *** /tmp/,RCSt1a18351    Fri Dec  4 07:46:43 1992
  356. --- part6    Fri Dec  4 07:38:55 1992
  357. ***************
  358. *** 2,12 ****
  359.   Newsgroups: comp.unix.questions,comp.unix.shell,news.answers
  360.   Followup-To: comp.unix.questions
  361.   Organization: Empress Software
  362. ! Subject: Frequently Asked Questions about Unix (6/7) [Biweekly posting]
  363.   Approved: news-answers-request@MIT.Edu
  364.   
  365. ! Archive-name: unix-faq/part6
  366. ! Version: $Id: part6,v 2.0 92/10/20 12:07:30 tmatimar Exp $
  367.   
  368.   These seven articles contain the answers to some Frequently Asked
  369.   Questions often seen in comp.unix.questions and comp.unix.shell.
  370. --- 2,12 ----
  371.   Newsgroups: comp.unix.questions,comp.unix.shell,news.answers
  372.   Followup-To: comp.unix.questions
  373.   Organization: Empress Software
  374. ! Subject: Unix - Frequently Asked Questions (6/7) [Frequent posting]
  375.   Approved: news-answers-request@MIT.Edu
  376.   
  377. ! Archive-name: unix-faq/faq/part6
  378. ! Version: $Id: part6,v 2.1 92/12/04 07:43:57 tmatimar Exp $
  379.   
  380.   These seven articles contain the answers to some Frequently Asked
  381.   Questions often seen in comp.unix.questions and comp.unix.shell.
  382. *** /tmp/,RCSt1a18351    Fri Dec  4 07:46:45 1992
  383. --- part7    Fri Dec  4 07:38:56 1992
  384. ***************
  385. *** 2,12 ****
  386.   Newsgroups: comp.unix.questions,comp.unix.shell,news.answers
  387.   Followup-To: comp.unix.questions
  388.   Organization: Empress Software
  389. ! Subject: Frequently Asked Questions about Unix (7/7) [Biweekly posting]
  390.   Approved: news-answers-request@MIT.Edu
  391.   
  392. ! Archive-name: unix-faq/part7
  393. ! Version: $Id: part7,v 2.0 92/10/20 12:07:46 tmatimar Exp $
  394.   
  395.   These seven articles contain the answers to some Frequently Asked
  396.   Questions often seen in comp.unix.questions and comp.unix.shell.
  397. --- 2,12 ----
  398.   Newsgroups: comp.unix.questions,comp.unix.shell,news.answers
  399.   Followup-To: comp.unix.questions
  400.   Organization: Empress Software
  401. ! Subject: Unix - Frequently Asked Questions (7/7) [Frequent posting]
  402.   Approved: news-answers-request@MIT.Edu
  403.   
  404. ! Archive-name: unix-faq/faq/part7
  405. ! Version: $Id: part7,v 2.1 92/12/04 07:44:00 tmatimar Exp $
  406.   
  407.   These seven articles contain the answers to some Frequently Asked
  408.   Questions often seen in comp.unix.questions and comp.unix.shell.
  409.