April 25, 2024, 04:11:57 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Terminal window and eb for linux

Started by Andy, March 03, 2015, 06:32:51 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andy

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.
:)


Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

Rock Ridge Farm (Larry)

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

Rock Ridge Farm (Larry)

BTW - IWB has the system command built-in.
SYSTEM(command as STRING, OPT param as STRING)


Larry

Andy

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.
:)

Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

Rock Ridge Farm (Larry)

Why not use the system command within the C program?

Larry