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