IonicWind Software

IWBasic for Linux => General IWLP Discussion => Topic started by: Andy on March 03, 2015, 06:32:51 AM

Title: Terminal window and eb for linux
Post by: Andy on March 03, 2015, 06:32:51 AM
Hi,

Just a couple of questions:

How can you make a program open a linux terminal (shell) and send a command to it - is that possible?

Also, is Ebasic for linux still available for download?

I'm sticking with IWB and windows programming, but I could do with a patch for my IWB program to open a terminal
and send a command.

Thanks,
Andy.
:)


Title: Re: Terminal window and eb for linux
Post by: Rock Ridge Farm (Larry) on March 03, 2015, 07:15:28 AM
System command - in C it would be system("<command string>");
Some versions also have it as a shell call.

Older iwb download is out dated for linux.
I am still putzing with the new version - keep getting pulled in 20 directions so everything is slow.

Larry
Title: Re: Terminal window and eb for linux
Post by: Rock Ridge Farm (Larry) on March 03, 2015, 07:18:58 AM
BTW - IWB has the system command built-in.
SYSTEM(command as STRING, OPT param as STRING)


Larry
Title: Re: Terminal window and eb for linux
Post by: Andy on March 05, 2015, 05:29:35 AM
Thanks Larry,

I know you're very busy, but thanks for replying.

I've done it the harder way,

I created a bash script
Created and compiled a C program to run the bash script which opens a terminal and runs the commands I need.

My program now runs the C program, which in turn runs the bash script.

This does depend on where the script and the C program reside, on my linux system it's in the "Downloads" folder.

This is not perfect, as it depends on the location of the files, and the user has to CHMOD them firstly so they can execute.

Message me anyone if you use linux and you want a copy to see.

Anyway,
Thanks again.

Andy.
:)

Title: Re: Terminal window and eb for linux
Post by: Rock Ridge Farm (Larry) on March 05, 2015, 07:49:51 AM
Why not use the system command within the C program?

Larry