Page 1 of 1

Problem with Console App

Posted: Tue May 27, 2003 3:56 pm
by Sensphere
Hi

i would like to code a small console app like 'dir' or 'ls' for Linux
which gets some input parameters and outputs ist result to the
console (eg. bash). It should do some calculations and should
be used from a pearl-script.
Is there a way to do this in pb? Input is not the problem -
ProgramParameter does the job - but how to display the output???

tia - your help will be appreciated

Posted: Tue May 27, 2003 8:10 pm
by pbdep
HI,

From the looks of your question? I cant make any cake from it, sorry.

Perhpas a print? Ooooo i get it...you would like to do cgi programming,
then i would like refer you to all the cgi code on the web, tons of it, try
to get a hook on how it works, then try to bake a cake in bash / ksh and then
in perl (thats perl not pearl!, no offence ;-) then try it in PB or C.. you like it.

Good luck, Pbdep.

Re: Problem with Console App

Posted: Wed May 28, 2003 5:16 am
by PB
> how to display the output???

Code: Select all

OpenConsole()
  PrintN("Output to console/DOS box")
  Input()
CloseConsole()

Re: Problem with Console App

Posted: Wed May 28, 2003 12:09 pm
by Sensphere
i tried the demo for linux - with no console output :lol:
but as i see this is included in the full version :wink:
PB wrote:> how to display the output???

Code: Select all

OpenConsole()
  PrintN("Output to console/DOS box")
  Input()
CloseConsole()