Problem with Console App

Linux specific forum
Sensphere
User
User
Posts: 19
Joined: Tue May 27, 2003 3:44 pm
Location: Germany/Stuttgart
Contact:

Problem with Console App

Post 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
__ i know that i know nothing __
__ those who swim with the stream will never reach the source __
(K7 XP @ 2.4 GHz | WinXP SP1 | 1 GB RAM | ATI Radeon 7500 | PB 3.81 [Win|Linux])
pbdep
User
User
Posts: 68
Joined: Fri Apr 25, 2003 5:18 pm
Location: Netherlands

Post 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.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Problem with Console App

Post by PB »

> how to display the output???

Code: Select all

OpenConsole()
  PrintN("Output to console/DOS box")
  Input()
CloseConsole()
Sensphere
User
User
Posts: 19
Joined: Tue May 27, 2003 3:44 pm
Location: Germany/Stuttgart
Contact:

Re: Problem with Console App

Post 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()
__ i know that i know nothing __
__ those who swim with the stream will never reach the source __
(K7 XP @ 2.4 GHz | WinXP SP1 | 1 GB RAM | ATI Radeon 7500 | PB 3.81 [Win|Linux])
Post Reply