Hi Tushar,

why dont you run "top -n 1" using cron script that will mail you the status
as well as the output.

and in this case any restriction on not using sh or bash instead of ksh?

Kapil Sethi
----- Original Message -----
From: "Tushar Kanwar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 04, 2003 12:15 PM
Subject: RE: [ilugd] ksh script problem addendum


> Hi
>
> Sorry - forgot to mention that the scheduler is scheduling to run the
script
> on a Linux box via a virtual terminal.
>
>
>
> Tushar Kanwar
> ESM
> [EMAIL PROTECTED]
>
> 0120 - 2512021 - 30 extn. 6636
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Behalf Of [EMAIL PROTECTED]
> Sent: Wednesday, June 04, 2003 12:11 PM
> To: [EMAIL PROTECTED]
> Subject: [ilugd] ksh script problem
>
>
> Hi!
>
> I'm using a scheduling program on a HPUX machine to schedule running the
top
> command and capturing its output within the scheduling program itself.
>
> This is the script:
>
> #!/usr/bin/ksh
> #Setting the term type
> set term=vt100;tset
> #running the top command once
> top -n 1
>
> The error I get in the output window of the scheduler is :
> #output start
>
> tset: Standard error: Inappropriate ioctl for device
>
> top: tcgetattr() failed: Inappropriate ioctl for device
>
> #output end
>
>
> Any clues as to why this may be happening? Could really do with some quick
> pointers here.
>
> TIA,
>
> Tushar Kanwar
>
>
> _______________________________________________
> ilugd mailing list
> [EMAIL PROTECTED]
> http://frodo.hserus.net/mailman/listinfo/ilugd
>
>
> _______________________________________________
> ilugd mailing list
> [EMAIL PROTECTED]
> http://frodo.hserus.net/mailman/listinfo/ilugd


_______________________________________________
ilugd mailing list
[EMAIL PROTECTED]
http://frodo.hserus.net/mailman/listinfo/ilugd

Reply via email to