home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / aix / 12758 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  1.5 KB

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!olivea!apple!okki
  2. From: okki@Apple.COM (Okki Tranggana)
  3. Newsgroups: comp.unix.aix
  4. Subject: "@: Badly formed number" in C Shell
  5. Summary: Erratic "@" operator problem in csh
  6. Keywords: csh, arithmetic operator, @
  7. Message-ID: <75845@apple.apple.COM>
  8. Date: 21 Dec 92 22:04:39 GMT
  9. Distribution: usa
  10. Organization: Apple Computer Inc., Cupertino, CA
  11. Lines: 34
  12.  
  13.  
  14. I have a 530H running AIX 3.2.2 and I'm having a very strange problem with
  15. the "@" operator in csh.  Here is the scenario:
  16.  
  17.     I have a script that uses "@" such as:
  18.  
  19.        @ n = 1
  20.  
  21.     The script is called by cron every Saturday.  For some unknown 
  22.     reasons, my script always failed on the line containing the "@"
  23.     operation with the following error:
  24.  
  25.        @: Badly formed number
  26.  
  27.     My crontab entry looks like:
  28.  
  29.        0 2 * * 6 /bin/csh -f /root/bin/fullback
  30.  
  31.     I've run the script manually and the problem did not occur.
  32.     So I tested the script with cron again, by adding a crontab entry that
  33.     will run in the next minute.  And VOILA!! It also works.  However, my
  34.     regularly scheduled cron job (every Saturdays) always failed on the "@".
  35.  
  36. I've called the AIX Software Defect and was told that there were 3 major
  37. fixes to the C shell.  So I'm hoping that the fix I'm getting will fix
  38. my problem.
  39.  
  40. Has anyone else seen this problem??
  41.  
  42.  
  43. ----------------------------------------------------------------------
  44. Okki Tranggana                    |    Apple Computer, Inc.
  45. email: okki@apple.com             |    20525 Mariani Ave. MS:43-MT
  46. tel:   (408) 974-7323             |    Cupertino, CA 95014
  47.