Hi Anton,

Actually I only have questions. I want to know whether there is any option to 
make hpi_shell run in non-batch mode (inhibiting prompt 'OpenHPI>').

I tried to write 'quit' CMD in my own script and use 'hpi_shell -f my.script' 
to avoid my script stuck at the 'OpenHPI>' prompt. 

For example.
<at061-s00c01h0:root>/root/benq:
> cat  hpi.cmds
inv 006 000
quit
quit
<at061-s00c01h0:root>/root/benq:
>hpi_shell -f hpi.cmds
Discovery done
        Enter a command or "help" for list of commands
Available commands are:
..........
..........
        Field: 4  Type: SERIAL_NUMBER Read Only: 1 (TEXT: ENGLISH: BS0837UE0LM  
    (len=16))
 - more -

([Ben]->script stuck here and waiting my input)

        Field: 5  Type: PART_NUMBER Read Only: 1 (TEXT: ENGLISH: 3CM02859AMAA 
(len=12))
        Field: 6  Type: FILE_ID Read Only: 1 ()
quit
Killed

But my script might still stuck there when the output is too much (it went into 
'more' and hpi_shell wait me input "ENTER" to finish the script).

My question is if there is other option to inhibit the user interaction, so 
that there is no "more" prompt to me and I can get the output into standard 
output directly?

Thanks for your time!!

Thanks again,
Ben

-----Original Message-----
From: Anton Pak [mailto:[email protected]] 
Sent: 2011年1月26日 1:09
To: [email protected]; QU Ben
Subject: Re: [Openhpi-devel] A help request on OpenHPI

Hello Ben!

What problems did you observe when running hpi_shell from your script?

        Anton Pak

On Tue, 25 Jan 2011 09:18:56 +0300, QU Ben <[email protected]>  
wrote:

> Hi,
>
>
> I am a new developer in OpenHPI area. I want to know whether hpi_shell
> can run in a non-batch mode? So that I can retrieve the result using my
> own shell script.
>
>
> Thanks for your time!
>
>
> Thanks,
>
> Ben
>

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Openhpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openhpi-devel

Reply via email to