Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Tue Jun 02, 2020 8:11 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Automating console tasks w/ RB?
PostPosted: Mon Nov 21, 2005 4:08 pm 
Offline

Joined: Sun Nov 20, 2005 3:30 am
Posts: 2
Hi!

I need some help getting started with "automating" tasks in Linux that normally is done through the command line console mode. I.e. I want to pass parameters to the operating system from my RB application like the way you can do with Visual Basic 6 and the Windows/DOS Command Line environment.

For example:
How do I pass the string "iwconfig eth0 ap 00:60:1D:01:23:45" to the operating system through REALbasic?

Also; is there a way to get the console output back in return to REALbasic?

For example:
I pass the console command "ifconfig" to Linux and I want to get the ifconfig output back into my RB application.

Example input to Linux console from RB:
ifconfig eth0

Output from Linux to RB that I want to be able to grab in my RB application:
eth0 Link encap 10Mbps Ethernet HWaddr 00:00:C0:90:B3:42
inet addr 192.168.0.100 Bcast 192.168.0.255 Mask 255.255.255.0
UP BROADCAST RUNNING MTU 1500 Metric 0
RX packets 3136 errors 217 dropped 7 overrun 26
TX packets 1752 errors 25 dropped 0 overrun 0

Many thanks in advance!
Best regards,
J


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Nov 21, 2005 6:37 pm 
Offline

Joined: Fri Sep 30, 2005 2:17 pm
Posts: 171
I think the Shell class is what you're looking for.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Nov 22, 2005 4:09 am 
Offline

Joined: Sun Nov 20, 2005 3:30 am
Posts: 2
Brilliant! Thanx!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group