home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / next / sysadmin / 6520 < prev    next >
Encoding:
Text File  |  1992-11-15  |  1.7 KB  |  59 lines

  1. Newsgroups: comp.sys.next.sysadmin
  2. Path: sparky!uunet!ornl!sunova!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!sdd.hp.com!wupost!usc!rpi!scott.skidmore.edu!psinntp!psinntp!juliet!news
  3. From: jja@fnbc.com (Joseph Alotta)
  4. Subject: need help with sh programming oddity 
  5. Message-ID: <1992Nov13.152112.3229@fnbc.com>
  6. Keywords: 3.0, sh, cron
  7. Sender: news@fnbc.com
  8. Organization: First National Bank Of Chicago, Chicago IL, USA
  9. Date: Fri, 13 Nov 92 15:21:12 GMT
  10. Lines: 47
  11.  
  12.  
  13. i have been running a shell every night for about 2 years.  when i
  14. ugraded the OS to NeXtStep 3.0, i started having this problem.
  15.  
  16. the shell does the rsh and then does half of the next echo and then
  17. stops.
  18.  
  19. this is the program.
  20.  
  21.  
  22. #!/bin/sh -x
  23.  
  24.  
  25.  
  26.  
  27. $UCB/rsh diva /usr/cleo/answer.sh   
  28.  
  29. echo '::::::::::back:on:amy::::::::::::::::'       # stops halfway here.
  30.  
  31. $UCB/rcp diva:/usr/cleo/csidata.dat /tmp/data.csi
  32.  
  33.  
  34. this is the output:
  35.  
  36.  {FS=":"}{print $1}
  37. HOURS=18
  38. + [ 18 -lt 4 ]
  39. + [ 154989 -lt 50000 ]    #last line of answer.sh
  40. + echo ::::::
  41. ::::::
  42.  
  43. notice the echo only does the first six characters.  i've tried other
  44. characters and it only prints the first six.  btw, this only happens
  45. durring cron, from a manual startup it runs right through.
  46.  
  47. is this wierd or what?
  48.  
  49.  
  50. joe.
  51. --
  52. ==============================================================
  53. ! joe alotta                                    jja@fnbc.com !                                               
  54. !                                             (312) 732-3439 !
  55. !                                                            !
  56. ! "The main thing is to keep the main thing the main thing." !
  57. ! Dr. George Sweeney                                         !
  58. ==============================================================
  59.