![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| running script in cron - with ssh commands - not working | frustrated1 | Shell Programming and Scripting | 31 | 09-16-2008 11:14 AM |
| pwd & cd commands not working in shell script | perk_bud | Shell Programming and Scripting | 9 | 04-07-2008 08:11 AM |
| How to run unix commands in a new shell inside a shell script? | hkapil | Shell Programming and Scripting | 2 | 01-04-2006 06:56 AM |
| differnce between working of at and crontab commands | doddas | UNIX for Dummies Questions & Answers | 2 | 05-04-2005 04:17 PM |
| KORN Shell - Spawn new shell with commands | frustrated1 | Shell Programming and Scripting | 2 | 04-20-2005 03:23 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How to get shell commands working through ruby?
Hi all,
I am a newbie currently trying to execute shell commands from ruby instead of a shell script.(This method is conceived only for solaris so no issues with porting to other OS and all) Eg: Consider the command 'ls" with a shell script ,I would use it like this bash# ls <all the contents in that dir would be displayed> Now how do i get to do the same with ruby? I dont want to use methods like recursively searching the directory and then displaying the contents(through some while loop ) It has to be only "ls", as in i need to make "ls" work on solaris through ruby as it would if it were to be written In a shell script? Thanks |
| Bookmarks |
| Tags |
| linux commands, os command, ruby |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|