Re: Script question
From: Miller, Dave (I.S.) (Dave.Miller_at_BHS.ORG)
Date: 08/27/04
- Previous message: Bob Booth - CITES: "Re: Logical Volume closed upon creation"
- Maybe in reply to: Miller, Dave (I.S.): "Script question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 27 Aug 2004 13:34:57 -0400 To: aix-l@Princeton.EDU
Here we go...
With this when its complete "dave4" is truncated.
However if I issue
/usr/local/bin/msgview > /tmp/dave4
Outside of a script, /tmp/dave4 will not be truncated.
thanks
#!/usr/bin/ksh
#set -vx
.. /home/d_build/.profile
export LIBPATH=......
/usr/local/bin/msgview > /tmp/dave
sleep 5
sort /tmp/dave -o /tmp/dave2
uniq /tmp/dave2 /tmp/dave3
cat /tmp/dave3 >/tmp/dave4
-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
Green, Simon
Sent: Friday, August 27, 2004 11:06 AM
To: aix-l@Princeton.EDU
Subject: Re: Script question
I've done a very simple test on one of my 4.3.3 systems and I didn't
have
any problems: it successfully created an output file with lines of over
80
characters length.
Could it be a problem with your shell environment?
Can you show us the salient parts of the script?
-- Simon Green Altria ITSC Europe Ltd AIX-L Archive at https://new-lists.princeton.edu/listserv/aix-l.html New to AIX? http://publib-b.boulder.ibm.com/redbooks.nsf/portals/UNIX N.B. Unsolicited email from vendors will not be appreciated. Please post all follow-ups to the list. -----Original Message----- From: Miller, Dave (I.S.) [mailto:Dave.Miller@BHS.ORG] Sent: 27 August 2004 14:45 To: aix-l@Princeton.EDU Subject: Re: Script question the cron entry has >/tmp/myfile -----Original Message----- From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of Green, Simon Sent: Friday, August 27, 2004 9:35 AM To: aix-l@Princeton.EDU Subject: Re: Script question How are you getting the cron output? Are you redirecting the script to a file still, or relying on the output being mailed to you? -- Simon Green Altria ITSC Europe Ltd AIX-L Archive at https://new-lists.princeton.edu/listserv/aix-l.html New to AIX? http://publib-b.boulder.ibm.com/redbooks.nsf/portals/UNIX N.B. Unsolicited email from vendors will not be appreciated. Please post all follow-ups to the list. -----Original Message----- From: Miller, Dave (I.S.) [mailto:Dave.Miller@BHS.ORG] Sent: 27 August 2004 14:09 To: aix-l@Princeton.EDU Subject: Script question When I run a korn shell script,interactively, and redirect it to a file, for a program that produces 120 byte output lines, it displays all 120 bytes in the file no problem. Example: myscript>/tmp/thefile. However if I run it via a cron entry, the output is truncated to 80 bytes. I tried putting stty cols120 in the script, to no avail. Any other insight? ----------------------------------------- CONFIDENTIALITY NOTICE: This email communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please reply to the sender immediately or by telephone at (413) 794-0000 and destroy all copies of this communication and any attachments. For further information regarding Baystate Health System's privacy policy, please visit our Internet web site at http://www.baystatehealth.com.
- Previous message: Bob Booth - CITES: "Re: Logical Volume closed upon creation"
- Maybe in reply to: Miller, Dave (I.S.): "Script question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- [HPADM] RE: Script question to make multiple file of fixed rec le n of 255
... [HPADM] Script question to make multiple file of fixed rec len of ... For a
single file I can use the follwing script ... How should I process the multiple file?
... (HP-UX-Admin) - Re: Script question
... N.B. Unsolicited email from vendors will not be appreciated. ... Please post
all follow-ups to the list. ... Subject: Script question ... However if I
run it via a cron entry, the output is truncated to 80 bytes. ... (AIX-L) - Strange problem with cron.
... I can't see where MANPATH is defined. ... This isn't used anywhere in the cron
entry or the script it calls. ... Any fool can criticize, condemn, and complain
- and most fools do. ... (comp.os.linux.setup) - Re: Perl Script from CronJob Rights Problem
... >> i wrote this little perl script that checks the mail queue of postfix,
... >> When i execute that script being logged in as root it works perfectly, ...
No cron entry. ... (comp.os.linux.misc) - Help with a shell script acting strange in AIX
... I have this Korn shell script that runs via a cron entry. ... watching
is an upload file system for an FTP server. ... (comp.unix.aix)