Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Returning from a program

by atopolc (Pilgrim)
on Aug 12, 2002 at 16:51 UTC ( #189545=note: print w/replies, xml ) Need Help??


in reply to Returning from a program

Why not print to standard error anything that you would like to return to kshell.
Your kshell script could then capture that information.

This is how it would look.

In perl:
 print STDERR 12.34

In kshell:
scriptoutput=$(script.pl ${arg1} ${arg2} 2>&1) echo "number returned from script -> ${scriptoutput}"

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://189545]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2021-11-28 18:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?