home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / zines / a_m / hnet01.16 < prev    next >
Encoding:
Text File  |  2003-06-11  |  17.9 KB  |  595 lines

  1.                 H-NET H-NET H-NET H-NET H-NET H-NET H-NET H
  2.                 N                                         N
  3.                 E          ** H-Net Magazine **           E
  4.                 T                                         T
  5.                 H   Volume One, Issue 1, File #16 of 20   H
  6.                 N                                         N
  7.                 E  UNIX-HELP conf on UNAXCESS BBS, JANET  E
  8.                 T                                         T
  9.                 H-NET H-NET H-NET H-NET H-NET H-NET H-NET H
  10.  
  11. DETAILS : Unaxcess BBS - JANET address - 0000121100
  12.  
  13. UNAXCESS is a bbs that is run by Bradford University on the JANET (Joint
  14. Academic) NETwork.  Although it is very strictly run and you need to be a 
  15. student to gain access I did not find it much of a problem.  They also have
  16. a strict policy of no hacking chat - but with UNIX and VAX help conferences
  17. I was still interested in it!! hehehe.  Another interesting feature of the BBS
  18. is it's chat mode 'T' from the main menu - about 8 lines I think.
  19.  
  20. Plenty of people seem to be slagging off JANET as boring these days - they are 
  21. usually the people who havent bothered to have a good look around - I mean
  22. the La Palma Observatory hack was quite funny!! hehee
  23.  
  24. Message 277 (of 292, 28 more unread) in UNIX-HELP:
  25. Date: Saturday, 7 April, 1990 - 5:27 PM
  26. From: JOB
  27. To: ANDIE
  28. Subject: WhiteChapel Mg1
  29. In-Reply-To: 263, 210
  30.  
  31. a maintenance floppy? Is that a special utils disk then?
  32. hmm.. we don't have that.
  33. Do you know anyone with an MG1?
  34. cheers, Jason.
  35. --
  36. Replied-to-by: ANDIE
  37.  
  38. 19:55 [UNIX-HELP] Reading (? for help) N
  39.  
  40. Message 285 (of 292, 27 more unread) in UNIX-HELP:
  41. Date: Monday, 9 April, 1990 - 1:33 PM
  42. From: ANDIE
  43. To: JOB
  44. Subject: WhiteChapel Mg1
  45. In-Reply-To: 277, 263, 210
  46.  
  47. Yes. To make a new one, you need to "cd /usr/wcw; ./mkmflp"
  48. but seeing as your usr partition is broken, this isn't much help.
  49.  
  50. I'm in the process of acquiring some Whitechapel spares...One of the broken
  51. beasts is a MG-1. If I can generate a maintenace floppy from one, I'll let you
  52. know.
  53.  
  54. --Andie.
  55.  
  56. 19:44 [UNIX-HELP] Reading (? for help) N
  57.  
  58. Message 264 (of 292, 26 more unread) in UNIX-HELP:
  59. Date: Thursday, 29 March, 1990 - 10:39 PM
  60. From: FRED
  61. To: DYLAN
  62. Subject: cd...
  63. In-Reply-To: 261, 260, 259, 257, 256, 252
  64.  
  65. Or you could get a C proggy to call a shell script, but that would be slower,
  66. possibly more interesting?
  67. Fred.
  68. --
  69. Replied-to-by: DYLAN
  70.  
  71. 19:35 [UNIX-HELP] Reading (? for help) N
  72.  
  73. Message 265 (of 292, 25 more unread) in UNIX-HELP:
  74. Date: Friday, 30 March, 1990 - 3:49 AM
  75. From: DYLAN
  76. To: FRED
  77. Subject: cd...
  78. In-Reply-To: 264, 261, 260, 259, 257, 256, 252
  79.  
  80. But that wouldn't work.
  81.  
  82. Dylan.
  83.  
  84. 19:31 [UNIX-HELP] Reading (? for help) N
  85.  
  86. Message 266 (of 292, 24 more unread) in UNIX-HELP:
  87. Date: Friday, 30 March, 1990 - 10:21 AM
  88. From: DISCO MAN
  89. Subject: changing directory in a c program
  90.  
  91. The whole idea of changing the directory in a c program is so that
  92. I can write for example
  93.         chdir("/user/compsci/cs_bsc/evansmp/application");
  94.                 ...
  95.         output = fopen("outfile");
  96.         input = fopen("infile");
  97.         rename ("infile","infile%");
  98.  
  99. without having to put the complete path name in every file reference,
  100. and ensuring that the program will do what it should do whatever the
  101. pwd of its parent process is.
  102.  
  103. Prehaps more useful is
  104.         #define APPLICATION_DIR "/usr/compsci/cs_bsc/evansmp/application"
  105.                 ...
  106.         chdir(APPLICATION_DIR);
  107.  
  108. --More [YD]--             19:20 [UNIX-HELP] Reading (?
  109.  for help) N
  110.  
  111. Message 267 (of 292, 23 more unread) in UNIX-HELP:
  112. Date: Wednesday, 4 April, 1990 - 9:13 PM
  113. From: PC PLOD
  114. Subject: re: cd.. cd.. cd.. cd.. cd.. cd.. cd.. cd.. ....
  115.  
  116. Have we all flogged 'cd' to death now PLEASE??
  117. --
  118. Replied-to-by: DYLAN
  119.  
  120. 19:15 [UNIX-HELP] Reading (? for help) N
  121.  
  122. Message 268 (of 292, 22 more unread) in UNIX-HELP:
  123. Date: Thursday, 5 April, 1990 - 12:20 AM
  124. From: DYLAN
  125. To: PC PLOD
  126. Subject: re: cd.. cd.. cd.. cd.. cd.. cd.. cd.. cd.. ....
  127. In-Reply-To: 267
  128.  
  129. Well actually, we could go on at great length if you really wanted us to....
  130.  
  131. Dylan.
  132.  
  133. 19:09 [UNIX-HELP] Reading (? for help) N
  134.  
  135. Message 269 (of 292, 21 more unread) in UNIX-HELP:
  136. Date: Thursday, 5 April, 1990 - 6:17 AM
  137. From: DYLAN
  138. Subject: lisp
  139.  
  140. I need a lisp interpreter which will compile + run on System V, specifically
  141. a Xenix machine? Anyone got one.
  142.  
  143. Dylan.
  144. --
  145. Replied-to-by: LORRY
  146.  
  147. 19:03 [UNIX-HELP] Reading (? for help) N
  148.  
  149. Message 270 (of 292, 20 more unread) in UNIX-HELP:
  150. Date: Thursday, 5 April, 1990 - 12:24 PM
  151. From: LORRY
  152. To: DYLAN
  153. Subject: lisp
  154. In-Reply-To: 269
  155.  
  156. Think there's one on Tardis but anyway, jpd could be the man to ask.
  157. --
  158. Replied-to-by: DYLAN
  159.  
  160. 18:57 [UNIX-HELP] Reading (? for help) N
  161.  
  162. Message 276 (of 292, 19 more unread) in UNIX-HELP:
  163. Date: Thursday, 5 April, 1990 - 7:26 PM
  164. From: DYLAN
  165. To: LORRY
  166. Subject: lisp
  167. In-Reply-To: 270, 269
  168.  
  169. I already have, and am waiting in anticiaption of his answer sweetnes.
  170.  
  171. Dylan.
  172.  
  173. 18:55 [UNIX-HELP] Reading (? for help) N
  174.  
  175. Message 271 (of 292, 18 more unread) in UNIX-HELP:
  176. Date: Thursday, 5 April, 1990 - 5:55 PM
  177. From: CHRIS2
  178. Subject: File creation
  179.  
  180. As a non Unix expert can anyone help me with this one?
  181.  
  182. I want to put something into .profile so that when I sign on a test will
  183. be carried out to see if a certain file exists. If it doesn't then I want to
  184. 6create a new directory in /tmp/mysignon
  185. --
  186. Replied-to-by: CYBERMAN
  187. --
  188. Replied-to-by: BLADERUNNER
  189.  
  190. 18:50 [UNIX-HELP] Reading (? for help) N
  191.  
  192. Message 272 (of 292, 17 more unread) in UNIX-HELP:
  193. Date: Thursday, 5 April, 1990 - 6:02 PM
  194. From: CHRIS2
  195. Subject: File creation
  196.  
  197. please e-mail your repiles regarding my previous fiule
  198. creation question to C.Dennison@uk.ac.newcastle
  199.  
  200. Many thanks    Chris2
  201.  
  202. 18:48 [UNIX-HELP] Reading (? for help) N
  203.  
  204. Message 273 (of 292, 16 more unread) in UNIX-HELP:
  205. Date: Thursday, 5 April, 1990 - 6:15 PM
  206. From: CYBERMAN
  207. To: CHRIS2
  208. Subject: File creation
  209. In-Reply-To: 271
  210.  
  211. Try this
  212.  
  213. if [ -f file ]
  214. then
  215.         mkdir /tmp/mysignon/whatever
  216. fi
  217.  
  218. Or, if the file has to both exist and be non-zero in length
  219. use
  220.  
  221. if [ -s file ]
  222.  
  223. Square brackets execute the command test, I think the above is more
  224. readable, but you can also write these as below (see test manual page)
  225.  
  226. --More (85%) [YNDQ]--                    
  227.  if test -f file
  228. then
  229.         ....
  230.  
  231. Hope this helps,
  232.  
  233. --- Malcolm
  234.  
  235. 18:44 [UNIX-HELP] Reading (? for help) N
  236.  
  237. Message 274 (of 292, 15 more unread) in UNIX-HELP:
  238. Date: Thursday, 5 April, 1990 - 6:48 PM
  239. From: BLADERUNNER
  240. To: CHRIS2
  241. Subject: File creation
  242. In-Reply-To: 271
  243.  
  244.   Ummm..how about something like this:
  245.  
  246.    if test -s FILEYOUWANTTESTED then
  247.         mkdir /tmp/mysigno
  248.    fi
  249.  
  250. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>BLADERUNNER>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  251. --
  252. Replied-to-by: BLADERUNNER
  253.  
  254. 18:29 [UNIX-HELP] Reading (? for help) N
  255.  
  256. Message 275 (of 292, 14 more unread) in UNIX-HELP:
  257. Date: Thursday, 5 April, 1990 - 6:51 PM
  258. From: BLADERUNNER
  259. To: BLADERUNNER
  260. Subject: File creation
  261. In-Reply-To: 274, 271
  262.  
  263.   Whoops! Looks like Cyberman's already answered it!! :-)
  264.  
  265. 18:25 [UNIX-HELP] Reading (? for help) N
  266.  
  267. Message 278 (of 292, 13 more unread) in UNIX-HELP:
  268. Date: Saturday, 7 April, 1990 - 6:54 PM
  269. From: TANIA
  270. To: OLORIN
  271. Subject: background login
  272. In-Reply-To: 233, 228, 223
  273.  
  274. hmm.. I think you're kinda getting mixed up over the way subshells exist in
  275. unix if you're talking like that...  there's no way in unix that a child
  276. process can set the enviromnet (or anything else) of its parent (see `man tset`
  277. for a quote like "if a process could set the environment of its parent, none of
  278. this nonsense would be necessary in the first place")
  279.  
  280. whoever it was said about 'alias a alias' making all the lines using the alias
  281. 'a' go back to the start of the file -- uh, nono; the alias has been set up in
  282. the shell process, hash tables and all that jazz; it doesnt need to go back
  283. read the file in again.  How could it re-read stdin, eh?
  284.  
  285. there's various things that make .cshrc initialisation slow;  I can't remember
  286. all the reasons I realised and cut down on in my .cshrc...
  287. evaluating ~<username> is very slow, but ~ on its own is fast.
  288. in tcsh, whenever you set path, it recreates its hash table (maybe in csh too)
  289. so don't do
  290. set path = ( /bin /usr/bin /usr/ucb /usr/local /gnu/bin )
  291. set path = ( $path ~/bin/sun3 ~/bin/scripts /cs/share/bin )
  292. set path = ( $path /more/funky/stuff /loadsa/paths/for/interesting/things )
  293. ... do it all in one line, escaping newlines.
  294. also, if your path setup uses eg ../bin/`arch`/ or something several times, or
  295. indeed if you use any program more than once to get the same result, evaluate
  296. it once and put it in a variable.
  297. keep checking it and cutting out anything you dont really use; I for one often
  298. make up wierd and wonderful aliases to do complex tasks without needing any
  299. further thought (what's that?) and then never use them again.
  300. Put all the esoteric ones in a separate file and make an alias (gasp!) to
  301. --More (83%) [YNDQ]--                    
  302.  source that file -- many logins are just short ones that don't need all that
  303. trash (check printer queue; mail someone/check mail; whatever)
  304.  
  305. Er, kickoff time... see y'later.
  306.  
  307. Don't worry, be happy.
  308. ~Tania ----# Aaarrrggghhh what am I doing here anyway I've got a project to
  309. finish!!!
  310. Fish!
  311. bye!
  312. --
  313. Replied-to-by: CYBERMAN
  314. --
  315. Replied-to-by: OLORIN
  316.  
  317. 17:58 [UNIX-HELP] Reading (? for help) N
  318.  
  319. Message 279 (of 292, 12 more unread) in UNIX-HELP:
  320. Date: Saturday, 7 April, 1990 - 8:30 PM
  321. From: CYBERMAN
  322. To: TANIA
  323. Subject: background login
  324. In-Reply-To: 278, 233, 228, 223
  325.  
  326. Ssh startup is LOADS faster than csh, because you can get it to
  327. declare aliases as extern, i.e. expanded when called the first time.
  328. Means you can have as many wierd aliases as you like.
  329.  
  330. Doesnt help with csh though, does it..
  331.  
  332. Setting paths, i find it best to do it like thius..
  333.  
  334. set lpath = ( ~/bin /usr/local/bin ~/bin/X11 )
  335. set path = ( . $lpath /usr/bin /usr/ucb /bin /etc /usr/etc )
  336.  
  337. Except thatI usually put . at the end
  338.  
  339. Also, if you replace less common aliases with scripts, startup is faster.
  340.  
  341. --More (83%) [YNDQ]--                    
  342.  The main problem with csh startup however, is its size... Its just too big.
  343.  
  344. If you can get it, try ssh, or a ksh
  345.  
  346. --- MAlcolm
  347.  
  348. 17:48 [UNIX-HELP] Reading (? for help) N
  349.  
  350. Message 280 (of 292, 11 more unread) in UNIX-HELP:
  351. Date: Sunday, 8 April, 1990 - 4:24 PM
  352. From: OLORIN
  353. To: TANIA
  354. Subject: background login
  355. In-Reply-To: 278, 233, 228, 223
  356.  
  357. What I meant was to simulate alias with shell scripts . It tends to be a lot
  358. more flexible than the brain-dead alias facilities of csh. Trouble is then
  359. theres the delay of spawning another shell :-(
  360. --
  361. Replied-to-by: FIZZ
  362. --
  363. Replied-to-by: CYBERMAN
  364.  
  365. 17:43 [UNIX-HELP] Reading (? for help) N
  366.  
  367. Message 281 (of 292, 10 more unread) in UNIX-HELP:
  368. Date: Sunday, 8 April, 1990 - 5:15 PM
  369. From: FIZZ
  370. To: OLORIN
  371. Subject: background login
  372. In-Reply-To: 280, 278, 233, 228, 223
  373.  
  374. > ...spawning another shell
  375.  
  376. I thought Unixy peeps always forked other processes... hohum! :-)
  377.  
  378. +F.
  379. --
  380. Replied-to-by: OLORIN
  381.  
  382. 17:40 [UNIX-HELP] Reading (? for help) N
  383.  
  384. Message 282 (of 292, 9 more unread) in UNIX-HELP:
  385. Date: Sunday, 8 April, 1990 - 5:44 PM
  386. From: OLORIN
  387. To: FIZZ
  388. Subject: background login
  389. In-Reply-To: 281, 280, 278, 233, 228, 223
  390.  
  391. Well if you're getting picky :-)
  392. fork()/exec() 'ing another shell . Happy now ?
  393. --
  394. Replied-to-by: FIZZ
  395.  
  396. 17:37 [UNIX-HELP] Reading (? for help) N
  397.  
  398. Message 283 (of 292, 8 more unread) in UNIX-HELP:
  399. Date: Sunday, 8 April, 1990 - 7:41 PM
  400. From: FIZZ
  401. To: OLORIN
  402. Subject: background login
  403. In-Reply-To: 282, 281, 280, 278, 233, 228, 223
  404.  
  405. Yep, ta! :-)
  406.  
  407. Wouldn't like people to get the impression we used VMS now would we? :->
  408.  
  409. +F.
  410.  
  411. 17:29 [UNIX-HELP] Reading (? for help) N
  412.  
  413. Message 284 (of 292, 7 more unread) in UNIX-HELP:
  414. Date: Monday, 9 April, 1990 - 12:30 AM
  415. From: CYBERMAN
  416. To: OLORIN
  417. Subject: background login
  418. In-Reply-To: 280, 278, 233, 228, 223
  419.  
  420. If you make teh first line of your script
  421.  
  422. #!\bin\csh -f
  423.  
  424. (slashes should be forward ones, but that key isnt workking :-( )
  425.  
  426. It shouldd start csh without reading aliases etc, check the manual page
  427. for csh options.
  428.  
  429. Better still, write your scripts in Bournne shell, as its smaller it'll
  430. start faster - and for scripts its generally regarded as a better shell.
  431.  
  432. For Bourne shell startup use
  433.  
  434. #!\bin\sh
  435. --More (89%) [YNDQ]--                    
  436.  
  437. as the first linne (same problem with slashes)
  438.  
  439. --- Malcolm
  440.  
  441. 17:11 [UNIX-HELP] Reading (? for help) N
  442. Checkpointing...
  443.  
  444. Message 286 (of 292, 6 more unread) in UNIX-HELP:
  445. Date: Monday, 9 April, 1990 - 8:03 PM
  446. From: ALIEN
  447. Subject: UNIX shells
  448.  
  449. can anyone give me a rundown of the various shells available for UNIX
  450. and the (dis)/advantages of them?
  451.  
  452.      Alien
  453. --
  454. Replied-to-by: KEI
  455.  
  456. 17:01 [UNIX-HELP] Reading (? for help) N
  457.  
  458. Message 287 (of 292, 5 more unread) in UNIX-HELP:
  459. Date: Monday, 9 April, 1990 - 10:15 PM
  460. From: KEI
  461. To: ALIEN
  462. Subject: UNIX shells
  463. In-Reply-To: 286
  464.  
  465. Okay, speaking as a dedicated VMS person, I'm probably the wrong person to
  466. answer this, but here goes!!  One of the earliest shells was the Bourne shell
  467. (written by Bourne), which should be found in /bin (i.e. /bin/sh).  This is the
  468. standard shell (well, sort of).  It is small, fast and limited (no command
  469. recall, line editing or sttff like that).  Next on the scene was the C shell
  470. (/bin/csh)  this is meant to have a c-like syntax, making it easy for C
  471. programmers to write shell scripts.  It has rudimentary line-editing, using
  472. commands like !! to recall the previous command !a to recal the last command
  473. st`rting with a and various more complicated stuff.  A recent arrival (ish) is
  474. the korn shell (/bin/ksh) this is big but offers lots of facilities.  There is
  475. line-editing using EMACS or vi keystrokes.  Aliases are available in csh and
  476. ksh, these enable you to alias (for example) x to be cat, so when you type x
  477. the shell replaces it with cat which it then executes.  That's an overview ...
  478. the logout approaches!!
  479.  
  480. --More (83%) [YNDQ]--                    
  481.  A couple of other shells I have heard of but not used are vsh (a visual
  482. shell)and a shell written by those nice people at the free software foundation
  483. (GNU) which I think is called bash.
  484.  
  485. Ian
  486. --
  487. Replied-to-by: PEBBLE
  488.  
  489. 16:38 [UNIX-HELP] Reading (? for help) N
  490.  
  491. Message 288 (of 292, 4 more unread) in UNIX-HELP:
  492. Date: Monday, 9 April, 1990 - 10:28 PM
  493. From: PEBBLE
  494. To: KEI
  495. Subject: UNIX shells
  496. In-Reply-To: 287, 286
  497.  
  498. There's also one I've heard of called `ash', which is intended to run with
  499. `atty' (an `alternative termininal driver', which does line-editing etc.).
  500.  
  501. Bash (the FSF's Bourne Again Shell) is sort of a greatest upper bound (!) of
  502. /bin/sh and csh - it has a superset of sh syntax, line-editing a la emacs, and
  503. csh's job control and history substitution.
  504.  
  505. I've also heard of tcsh, which is sort of a modified csh (as ksh is a modified
  506. Bourne shell).
  507.  
  508. I think that's more than enough, don't you? :)
  509. --
  510. Replied-to-by: PSYCHO
  511.  
  512. 16:33 [UNIX-HELP] Reading (? for help) N
  513.  
  514. Message 289 (of 292, 3 more unread) in UNIX-HELP:
  515. Date: Monday, 9 April, 1990 - 10:33 PM
  516. From: PSYCHO
  517. To: PEBBLE
  518. Subject: UNIX shells
  519. In-Reply-To: 288, 287, 286
  520.  
  521. It is enough after I mention ssh (available on tardis).... 8-)
  522.  
  523. psycho....
  524. --
  525. Replied-to-by: FORD PREFECT
  526.  
  527. 16:28 [UNIX-HELP] Reading (? for help) N
  528.  
  529. Message 290 (of 292, 2 more unread) in UNIX-HELP:
  530. Date: Tuesday, 10 April, 1990 - 9:23 AM
  531. From: FORD PREFECT
  532. To: PSYCHO
  533. Subject: UNIX shells
  534. In-Reply-To: 289, 288, 287, 286
  535.  
  536. On the subject of ssh.. I just happen to have the Man page here in front of me!
  537.  
  538. NAME
  539.         ssh - a portable Unix shell
  540.  
  541. SYNOPSIS
  542.         ssh [ [-fP-]-bcefiklnrstuvxzBCDEFHIJKLMNPRSTUX ][ arg ...]
  543.  
  544. DESCRIPTION
  545.         Summary
  546.  
  547.         Ssh is a shell originally based on the Bourne shell sh with additions
  548.         inspired from the C-shell csh and the Korn shell ksh.
  549.  
  550.         Ssh is intended to be totally compatible with sh and the  settings of
  551. --More (71%) [YNDQ]--                    
  552.          various flags permits use of the additional features. In particular,
  553.         the -T flag acts as a toggle for switching between full
  554.         sh-compatibility and full ssh. etc....
  555.  
  556. I hope this is of some use!
  557.  
  558. Ford Prefect
  559.  
  560. 16:18 [UNIX-HELP] Reading (? for help) N
  561.  
  562. Message 291 (of 292, 1 more unread) in UNIX-HELP:
  563. Date: Thursday, 19 April, 1990 - 5:27 PM
  564. From: DISCO MAN
  565. Subject: problem with bash
  566.  
  567. Does anyone know how to get bash, (GNU's Bourne Again Shell) to compile
  568. on a Sequent Symetry S27. I can get it to work fine on a sun sparcstation,
  569. but not on the sequent.
  570.  
  571. 16:18 [UNIX-HELP] Reading (? for help) N
  572.  
  573. Message 292 (of 292) in UNIX-HELP:
  574. Date: Friday, 20 April, 1990 - 7:43 PM
  575. From: DARKANGEL
  576. Subject: Inter Process Communication
  577.  
  578.         Firstly, many thanks to Olorin for the socket information, but ...
  579. while developing the socket-using program (and it's really getting hair-raising
  580. now!) how can you safely exit, e.g. on an external request (kill process!)
  581. dropping the socket you were using.  Where I'm at the (Sequent Symmetry S29 I
  582. think - running DYNIX something or other - great effects can be had from simple
  583. calls to fork()!) system complains when my program keels over - I have to wait
  584. a while for the 'Socket already in use' messages to stop!
  585.  
  586. DarkAngel!
  587.  
  588. 16:17 [UNIX-HELP] Reading (? for help) X
  589.  
  590. ===============================================================================
  591. [Hackernet BBS,LEEDS,UK(0532)557739, 24hrs. Home of H-Net Hacking magazine]
  592.  
  593.  
  594. Downloaded From P-80 International Information Systems 304-744-2253
  595.