Rev as Linux Shell Script

2010-10-28 Thread Bill Andersen
, Lua and I've even written a few C utilities (Text manipulation). I've written with PHP and Perl for web. And, as part of my job, I have to create reports from a legacy Cobol system using ODBC and Linux shell scripting. The problem is, I really don't know any one of these programming languages

Re: Rev as Linux Shell Script

2010-10-28 Thread Andre Garzia
stick to the 3.5 engine or switch to RevServer but want to do some net stuff not enabled by libURL, you can always shell() to cURL and be happy. Hope this helps andre ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url

Re: Rev as Linux Shell Script

2010-10-28 Thread Peter W A Wood
Bill On 28 Oct 2010, at 22:39, Bill Andersen wrote: I'm sorry this is so long winded. I'm hoping it will help you understand my motivation... ... snip I've read how to get the runtime working as a CGI and played around enough that I 'can' (seemingly) make it work from a shell

Re: Rev as Linux Shell Script

2010-10-28 Thread Mike Bonner
' (seemingly) make it work from a shell with the #!revolution -ui declaration on the first line. However, when I get to some of the higher level features (FTP, ODBC, etc) I start getting errors. I was researching how to possibly resolve these issues (need libraries, etc) when I found that Rev 3.5

Re: Rev as Linux Shell Script

2010-10-28 Thread Andre Garzia
I also am keen to use LiveCode to write shell programs and believe that it is possible by adopting a slightly different approach. I believe that if you build a standalone of your script, you can run the 'standalone program with the -ui argument. Peter, This approach has a couple

Re: Rev as Linux Shell Script

2010-10-28 Thread Andre Garzia
On the subject of revserver, Andre, you mentioned that liburl works with that, but I have yet to get it to work in a revserver script. Has there been an updated release of revserver that works wiht liburl, or do I just have something broken on my end or.. ? Mike, I think it can handle

Re: Rev as Linux Shell Script

2010-10-28 Thread Mike Bonner
Ah k. Yep was confused. No libUrlFtp stuff doesn't work and even libURLVersion throws an error. I forget sometimes how much you can do with just the URL keyword. On Thu, Oct 28, 2010 at 9:37 AM, Andre Garzia an...@andregarzia.com wrote: On the subject of revserver, Andre, you mentioned

Re: Rev as Linux Shell Script

2010-10-28 Thread Bill Andersen
If you stick to the 3.5 engine or switch to RevServer but want to do some net stuff not enabled by libURL, you can always shell() to cURL and be happy. Yes. However, I'm still having to work with 'non-rev' syntax (learning how cURL works). As it turns out, I already know most

Re: Rev as Linux Shell Script

2010-10-28 Thread Andre Garzia
I've used PHP to do 'shell utilities', I sure wish Rev could act similar. How nice would it be to just have one language/syntax for the bulk of your code. There is RevServer... -- http://www.andregarzia.com All We Do Is Code. ___ use

Re: Rev as Linux Shell Script

2010-10-28 Thread J. Landman Gay
On 10/28/10 2:08 PM, Bill Andersen wrote: I've used PHP to do 'shell utilities', I sure wish Rev could act similar. How nice would it be to just have one language/syntax for the bulk of your code. You can insert libURL (or any other script) into the message path so that commands

Re: Rev as Linux Shell Script

2010-10-28 Thread Mike Bonner
/10 2:08 PM, Bill Andersen wrote: I've used PHP to do 'shell utilities', I sure wish Rev could act similar. How nice would it be to just have one language/syntax for the bulk of your code. You can insert libURL (or any other script) into the message path so that commands to the library

Re: Rev as Linux Shell Script

2010-10-28 Thread Bill Andersen
Thank you so much. I will try this and let you know how it works out... Bill On Oct 28, 2010, at 3:03 PM, J. Landman Gay wrote: On 10/28/10 2:08 PM, Bill Andersen wrote: I've used PHP to do 'shell utilities', I sure wish Rev could act similar. How nice would it be to just have one

Re: Rev as Linux Shell Script

2010-10-28 Thread J. Landman Gay
On 10/28/10 3:23 PM, Mike Bonner wrote: I have a question regarding this, if one were to copy the script as you explained, and instead of placing it in a stack could one paste it into an .irev file and use it as an include with revserver scripts? Yes, I think so, but I'm not sure how much of

Re: Rev as Linux Shell Script

2010-10-28 Thread Mike Bonner
Nope doesn't work, and I don't know enough to determine if it would be worthwhile to beat it into submission or how to begin if it is worthwhile. (tried it with the 4.5 script) Mostly was just wondering, revserver throws errors such as: 183,485,43,) 482,746,1,private EXECUTION ERROR: 681,0,0,1

Re: Rev as Linux Shell Script

2010-10-28 Thread Alex Tweedly
Just a guess . libURL uses private handlers, and RevServer scripts can't have private functions in them. (The Docs say 'private' applies to desktop and server, but my simple test suggests otherwise ?rev private function a p return p+p end a put a(4) ? fails, remove the 'private' and it

Re: Rev as Linux Shell Script

2010-10-28 Thread Mike Bonner
Oh cool. May mess around with it some more just to see. Thx! On Thu, Oct 28, 2010 at 5:16 PM, Alex Tweedly a...@tweedly.net wrote: Just a guess . libURL uses private handlers, and RevServer scripts can't have private functions in them. (The Docs say 'private' applies to desktop and

Re: Rev as Linux Shell Script

2010-10-28 Thread Alex Shaw
Hi Mike If you're using the 3.5 engine you can use liburl via the following: http://www.lacscentre.com/liburl/releases.html regards alex ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe

Re: Rev as Linux Shell Script

2010-10-28 Thread Mike Bonner
Cool, thanks much. Grabbed a stack to experiment with. On Thu, Oct 28, 2010 at 6:28 PM, Alex Shaw a...@harryscollar.com wrote: Hi Mike If you're using the 3.5 engine you can use liburl via the following: http://www.lacscentre.com/liburl/releases.html regards alex

Re: Rev as Linux Shell Script

2010-10-28 Thread J. Landman Gay
On 10/28/10 5:28 PM, Mike Bonner wrote: Nope doesn't work, and I don't know enough to determine if it would be worthwhile to beat it into submission or how to begin if it is worthwhile. (tried it with the 4.5 script) Mostly was just wondering, revserver throws errors such as: 183,485,43,)

Re: determining if user has shell access

2010-10-20 Thread Monte Goulding
the itemDel to \ if item -1 of the shellCommand is cmd.exe AND \ charToNum(queryRegistry(HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System\DisableCMD)) = 1 then -- don't use cmd.exe because shell() won't return -- don't revert to command.com because there seems

Re: determining if user has shell access

2010-10-15 Thread Monte Goulding
/consulting/blog/ I think I have this sorted but we might all want to update our code that uses shell on windows to handle this situation gracefully. There's also some functions and commands in the revCommon library that rely on shell that probably need an update. Cheers -- Monte Goulding M E R

Re: determining if user has shell access

2010-10-14 Thread Dar Scott
I'm a little confused as to what is happening. Is the app locking up? Or does the function return empty? If the latter, then maybe you can test shell with something trivial that always returns something that is not empty. If you get empty, you can't use shell(). Dar On Oct 13, 2010

Re: determining if user has shell access

2010-10-14 Thread Monte Goulding
Hi Dar Thanks for your interest. I'm a little confused as to what is happening. Is the app locking up? Yes. The shell function never returns. I have reported it as a bug because it should fail gracefully. But I'd love a workaround or test. Or does the function return empty

Re: determining if user has shell access

2010-10-14 Thread Alex Tweedly
Write a tiny script that does something trivial in shell (e.g. shell ls), and build that as a tiny executable. Have your real script run that as a separate process and see if it never returns. (Hmmm ... can you always start another executable ?) -- Alex. On 14/10/2010 09:41, Monte Goulding

Re: determining if user has shell access

2010-10-14 Thread Monte Goulding
Write a tiny script that does something trivial in shell (e.g. shell ls), and build that as a tiny executable. Have your real script run that as a separate process and see if it never returns. That's not a bad plan. Cheers -- Monte Goulding M E R Goulding Software Development Bespoke

Re: determining if user has shell access

2010-10-14 Thread Phil Davis
the wall to see if it sticks... Phil Davis On 10/14/10 2:56 AM, Monte Goulding wrote: Write a tiny script that does something trivial in shell (e.g. shell ls), and build that as a tiny executable. Have your real script run that as a separate process and see if it never returns. That's

Re: determining if user has shell access

2010-10-14 Thread Florian von Walter
Monte, the shell under Windows is cmd.exe which usually is located in C:\Windows\system32 for most recent versions of Windows. This path (i.e. C:\Windows) is actually dependent on systems and locales so there is an environment variable WINDIR which returns the path on the current system

Unable to open file using shell or process

2010-10-14 Thread Glen Bojsza
For all the linux users (or anyone that know shell or process) In a terminal window I can run the following command line and get the data generation I need. This should work in either a shell or process. First I am the same user as what I do in the terminal window and I am in the correct

Re: determining if user has shell access

2010-10-14 Thread Ken Ray
way to determine if you have permissions to execute shell scripts then is probably to find out if you have execute access to %WINDIR%\system32\cmd.exe. Unfortunately without access to the *shell*, we can't use attrib the equivalent, so that leaves launching apps or using a custom-built DLL

Re: Unable to open file using shell or process

2010-10-14 Thread Ken Ray
on mouseUp put /home/Bill/Desktop/report/nr.php -f tt.conf into promysql open process promysql for update read from process promysql for 500 put it into fld tout write quit to process promysql close process promysql end mouseUp Error: Unable to open tt.conf Glen, Not

Re: Unable to open file using shell or process

2010-10-14 Thread Glen Bojsza
Hi Ken, It does not make a difference though thanks for pointing it out... I was also trying to add 21 after the tt.conf to see if that made a difference but it did not. Glen On Thu, Oct 14, 2010 at 10:47 AM, Ken Ray k...@sonsothunder.com wrote: on mouseUp put

Re: Unable to open file using shell or process

2010-10-14 Thread Mike Bonner
Is the tt.conf in the same folder with nr.php? try /home/Bill/Desktop/report/nr.php -f /home/Bill/Desktop/report/tt.conf if it is, or simplify it by switching there first. cd /home/Bill/Desktop/report ; ./nr.php -f tt.conf On Thu, Oct 14, 2010 at 10:56 AM, Glen Bojsza gboj...@gmail.com wrote:

Re: Unable to open file using shell or process

2010-10-14 Thread Mike Bonner
oh duh, not a shell. So can't do the cd first so do my first suggestion and point to the exact path of the tt.conf On Thu, Oct 14, 2010 at 11:08 AM, Mike Bonner bonnm...@gmail.com wrote: Is the tt.conf in the same folder with nr.php? try /home/Bill/Desktop/report/nr.php -f /home/Bill/Desktop

Re: Unable to open file using shell or process

2010-10-14 Thread Mike Bonner
duh, not a shell. So can't do the cd first so do my first suggestion and point to the exact path of the tt.conf On Thu, Oct 14, 2010 at 11:08 AM, Mike Bonner bonnm...@gmail.com wrote: Is the tt.conf in the same folder with nr.php? try /home/Bill/Desktop/report/nr.php -f /home/Bill/Desktop

Re: Unable to open file using shell or process

2010-10-14 Thread Glen Bojsza
Yes, the nr.php file is in the same directory as the tt.conf file. I have also confirmed the path and files by do a process with ls -l /home/Bill/Desktop/reporter and it show the files. On Thu, Oct 14, 2010 at 11:08 AM, Mike Bonner bonnm...@gmail.com wrote: Is the tt.conf in the same folder

Re: determining if user has shell access

2010-10-14 Thread Dar Scott
Does open process fail? Maybe there is something along this way that will work either as a test or as your own shell. Dar On Oct 14, 2010, at 2:41 AM, Monte Goulding wrote: Hi Dar Thanks for your interest. I'm a little confused as to what is happening. Is the app locking up? Yes

Re: Unable to open file using shell or process

2010-10-14 Thread Mike Bonner
Did changing your code to the following work? on mouseUp put /home/Bill/Desktop/report/nr.php -f /home/Bill/Desktop/report/tt.conf into promysql open process promysql for update read from process promysql for 500 put it into fld tout write quit to process promysql close process promysql

Re: Unable to open file using shell or process

2010-10-14 Thread Glen Bojsza
Hi Mike, That did it ! Many thanks. Glen On Thu, Oct 14, 2010 at 12:04 PM, Mike Bonner bonnm...@gmail.com wrote: Did changing your code to the following work? on mouseUp put /home/Bill/Desktop/report/nr.php -f /home/Bill/Desktop/report/tt.conf into promysql open process promysql for

Re: Unable to open file using shell or process

2010-10-14 Thread Mike Bonner
Glad it worked for you! Since it's all in the same folder you can most likely simplify it by setting the default folder before opening the process. you can do it like on mouseup -- the following changes the default folder so that you start in the location -- that contains your php script and the

Re: determining if user has shell access

2010-10-14 Thread Monte Goulding
On 15/10/2010, at 4:53 AM, Dar Scott wrote: Does open process fail? Maybe there is something along this way that will work either as a test or as your own shell. I would expect that as long as the user has the right to execute the process then it should be fine. How do you send command

Re: determining if user has shell access

2010-10-14 Thread Dar Scott
to learn about. Dar On Oct 14, 2010, at 3:48 PM, Monte Goulding wrote: On 15/10/2010, at 4:53 AM, Dar Scott wrote: Does open process fail? Maybe there is something along this way that will work either as a test or as your own shell. I would expect that as long as the user has the right

Re: determining if user has shell access

2010-10-14 Thread Monte Goulding
Monte, if the user doesn't have shell access do you think they also wouldn't be able to execute a VBScript? Because if they *can* do VBScript, I'm sure there's a VBS way to find out shell access permissons. Hmm... It's a good idea but if I were locking down a Windows system I would block

Re: determining if user has shell access

2010-10-14 Thread Ken Ray
You can use the entire line that you would use in the appropriate command window, even changing the command process if need be, even changing priority. You can also elevate the process with 'open process elevated' which might get past the blocks (presumably asking for a password if needed).

Re: determining if user has shell access

2010-10-14 Thread Monte Goulding
working on a shell type function that will use open process instead. Cheers -- Monte Goulding M E R Goulding Software Development Bespoke application development for vertical markets InstallGadget - How to create an installer in 10 seconds revObjective - Making behavior scripts behave

Re: determining if user has shell access

2010-10-14 Thread Dar Scott
On Oct 14, 2010, at 4:42 PM, Monte Goulding wrote: I'm trying to avoid trial and error testing with the client of client. I understand. Perhaps your customer can ask the client of the client for the details of the lockdown so the technical team (you) can replicate it and test against

Re: determining if user has shell access

2010-10-14 Thread Andre Garzia
Monte, Where I work we manage third parties windows machine and while on some cases those companies block the users out of the command prompt, they usually don't do that but one thing that I've heard they do is block their access to ipconfig. They can't access ipconfig.exe or cmd.exe usually

Re: determining if user has shell access

2010-10-14 Thread Monte Goulding
Where I work we manage third parties windows machine and while on some cases those companies block the users out of the command prompt, they usually don't do that but one thing that I've heard they do is block their access to ipconfig. They can't access ipconfig.exe or cmd.exe usually which

Re: determining if user has shell access

2010-10-13 Thread Monte Goulding
No ideas anyone? How is it possible to determine if shell access is available? One of my apps is being run where the command line is restricted on Windows and shell calls aren't being returned. I think this is a bug in the engine in that a call to shell should return Error: no shell access

Re: shell command to identify wireless printer

2010-10-12 Thread Peter Brigham MD
, and then proceed. However, I don't understand much at all about command-line stuff. I ran put shell(/System/Library/PrivateFrameworks/Apple80211.framework/ Versions/Current/Resources/airport-I) and I get an error. What command should I use to operate on this filepath? And what's the -I at the end? It's

Re: shell command to identify wireless printer

2010-10-12 Thread Mike Bonner
the user never has to be asked again. If I can identify the wireless network I can associate a printer with it, store that printername, and then proceed. However, I don't understand much at all about command-line stuff. I ran put shell(/System/Library/PrivateFrameworks/Apple80211.framework/Versions

Re: shell command to identify wireless printer

2010-10-12 Thread Mike Bonner
Ignore any duplicates that show up, forgot to clean up last message and its being held for moderator approval, so don't know if they'll magically appear or not. This email is easier to read anyway. I'm actually awake now! Try this: get shell(cd /usr/sbin;system_profiler SPNetworkDataType |grep

Re: shell command to identify wireless printer

2010-10-12 Thread Peter Brigham MD
shell(cd /usr/sbin;system_profiler SPNetworkDataType |grep -i signature) set the itemdel to = put the last item of it into yourplacetostoreit It grabs the hardware signature of the router and splits out the last item which is the routers mac address. Should be a more reliable method of tagging

determining if user has shell access

2010-10-12 Thread Monte Goulding
Hi How is it possible to determine if shell access is available? One of my apps is being run where the command line is restricted on Windows and shell calls aren't being returned. I think this is a bug in the engine in that a call to shell should return Error: no shell access or something

Re: shell command to identify wireless printer

2010-10-08 Thread Peter Brigham MD
provide anything useful? Maybe its name give some indication that it is connected wirelessly. Dar Scott On Oct 7, 2010, at 4:12 PM, Peter Brigham MD wrote: I'm looking for the shell command that would include in its output something that would identify a printer that is currently

Re: shell command to identify wireless printer

2010-10-08 Thread J. Landman Gay
On 10/8/10 12:30 PM, Peter Brigham MD wrote: The availablePrinters shows the list of printers you have named and have drivers for -- it's what appears in the print dialog list, from which you choose the printer you want to use. I want to know automatically which printer my laptop is connected to

Re: shell command to identify wireless printer

2010-10-08 Thread Peter Brigham MD
The printername gives the name of the printer currently selected in the print dialog, ie, the default printer. On my MacBook, this will be the last printer used. But that will not necessarily be the name of the currently connected printer, if I have changed venues. I'm trying to find a way

Re: shell command to identify wireless printer

2010-10-08 Thread Mike Bonner
Can you come at it from a different direction? Can you check current SSID against a printer list to select which printer you want? Assuming you always go to the same set of networks, this should have a similar affect yes? Set it up once, save the printer name, next time you need to print check

shell command to identify wireless printer

2010-10-07 Thread Peter Brigham MD
I'm looking for the shell command that would include in its output something that would identify a printer that is currently wirelessly connected to my MacBook. I can use shell(ioreg) to get info on a printer connected via USB (after some parsing), but my wireless printer connection

Re: shell command to identify wireless printer

2010-10-07 Thread Mike Bonner
would change though, so your mileage may vary. On Thu, Oct 7, 2010 at 4:12 PM, Peter Brigham MD pmb...@gmail.com wrote: I'm looking for the shell command that would include in its output something that would identify a printer that is currently wirelessly connected to my MacBook. I can use shell

Re: shell command to identify wireless printer

2010-10-07 Thread Peter Brigham MD
my printer down to see if the status would change though, so your mileage may vary. On Thu, Oct 7, 2010 at 4:12 PM, Peter Brigham MD pmb...@gmail.com wrote: I'm looking for the shell command that would include in its output something that would identify a printer that is currently

Re: shell command to identify wireless printer

2010-10-07 Thread Dar Scott
Does 'the availablePrinters' in LiveCode provide anything useful? Maybe its name give some indication that it is connected wirelessly. Dar Scott On Oct 7, 2010, at 4:12 PM, Peter Brigham MD wrote: I'm looking for the shell command that would include in its output something that would

An easy way to pipe input into shell commands?

2010-10-02 Thread David Bovill
Is there a neat way to pipe input into shell commands from STDIN? The usual way I do it is to recreate everything as temporary files and then pass the file references - however it is both a hassle and can leave clutter around although I assume files stored in the tempname directory get cleared out

Re: An easy way to pipe input into shell commands?

2010-10-02 Thread Mark Schonewille
Hi David, One possibility might be to use CURL to connect to your standalone through a socket and pipe the data from that connection to the next shell command. This will work on Unix machines but might bot work on Windows. -- Best regards, Mark Schonewille Economy-x-Talk Consulting

Re: An easy way to pipe input into shell commands?

2010-10-02 Thread Dar Scott
On Oct 2, 2010, at 6:31 AM, David Bovill wrote: Is there a neat way to pipe input into shell commands from STDIN? You might consider the slave process feature of LiveCode which has been revamped in 4.5. Use 'open process' to run the command-line tool. Use 'write ... to process' to write

[CODE] MacOS X code to execute shell command with administrator priviledges

2010-06-30 Thread Andre Garzia
Folks, I just created a tiny function that I think might be useful for people here. Sometimes you want to execute a command with shell() on mac os x but your command needs to be run with administrator priviledges. Some might try to script sudo to do this or just give up because scripting sudo

Re: [CODE] MacOS X code to execute shell command with administrator priviledges

2010-06-30 Thread Jerry Daniels
Great stuff, Andre, thanks! On Jun 30, 2010, at 9:16 AM, Andre Garzia wrote: Folks, I just created a tiny function that I think might be useful for people here. Sometimes you want to execute a command with shell() on mac os x but your command needs to be run with administrator

Re: [CODE] MacOS X code to execute shell command with administrator priviledges

2010-06-30 Thread Andre Garzia
, I just created a tiny function that I think might be useful for people here. Sometimes you want to execute a command with shell() on mac os x but your command needs to be run with administrator priviledges. Some might try to script sudo to do this or just give up because scripting sudo

Re: Shell command return 255

2010-06-23 Thread Ken Ray
How to know from where the command is executed. In terminal put which command, and we get the entire path to the command. To test from the shell /bin/sh into the Terminal. Put /bin/sh and press enter. Now we are in the same shell that is called from shell and from Rev. Test your command

Shell command return 255

2010-06-20 Thread JosepM
Hi, From the DiagramCreator of Chipp I search info about graphicViz and I discovered the dot command to create diagrams on the fly from the Terminal. Trying to execute a command with the shell in MacOSx... from the terminal the command run ok and create the graphic without any problem, but from

Re: Shell command return 255

2010-06-20 Thread JosepM
Hi, Reply myself... and explain a little so I think can be usefully for others... The solution is that we must specify from where we want exec the command. MacOSX Shell execute by default from the shell /bin/sh, that isn't the shell from the Terminal, so testing commandlines from the terminal

Re: Shell Command with Sudo

2010-06-13 Thread Peter Alcibiades
Richmond Mathewson-2 wrote: This is all very charming, but I wonder how one would effect this from a standalone on an end-user's machine . . . :) You'd have to write an install or first use shell script. Get the user, then the root password, then write an extra line to /etc/sudoers

Re: Shell Command with Sudo

2010-06-12 Thread Justin Sloan
Thanks to all who replied. With you help and some additional research I came up with a solution. Mac OS X bash shell only allows results from commands to be piped in to another command, including sudo, not plain text. The solution is to set a bash variable (pw=password) and echo the variable

Re: Shell Command with Sudo

2010-06-12 Thread Peter Alcibiades
-revolution.278305.n4.nabble.com/Shell-Command-with-Sudo-tp2251593p2252593.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe

Re: Shell Command with Sudo

2010-06-12 Thread Richmond
On 06/12/2010 12:08 PM, Peter Alcibiades wrote: Is there a reason you cannot use the NOPASSWD option in sudo? Maybe this is not how it works in OSX, but what you'd normally do is to edit /etc/sudoers to allow this particular user to perform this particular command with the no password option,

Re: Shell Command with Sudo

2010-06-12 Thread Justin Sloan
that the majority of Mac users never even opened the Terminal. The solution is elegant, I believe, in that it will work on any Mac OS X machine and takes advantage of Bash' s flexibility with Rev's shell structure. Happy coding! - Justin On Sat, Jun 12, 2010 at 12:11 PM, Richmond richmondmathew

Shell Command with Sudo

2010-06-11 Thread Justin Sloan
Hello All, I am trying to run a shell() command in revStudio in order to execute some terminal commands as the superuser on a Mac. An Ubuntu terminal will accept the superuser password using a pipe, such as pass | sudo -S command, but Mac's terminal will not accept the password on the same

Re: Shell Command with Sudo

2010-06-11 Thread Jim Sims
On Jun 11, 2010, at 12:35 PM, Justin Sloan wrote: Hello All, I am trying to run a shell() command in revStudio in order to execute some terminal commands as the superuser on a Mac. An Ubuntu terminal will accept the superuser password using a pipe, such as pass | sudo -S command

Re: Shell Command with Sudo

2010-06-11 Thread Andre Garzia
...@gmail.comwrote: Hello All, I am trying to run a shell() command in revStudio in order to execute some terminal commands as the superuser on a Mac. An Ubuntu terminal will accept the superuser password using a pipe, such as pass | sudo -S command, but Mac's terminal will not accept the password on the same

Re: Shell Command with Sudo

2010-06-11 Thread David Bovill
Don't think expect is the right way to do this - best would be to use an ssh key (seem to remember that is how I used to do this back when i was on Linux with Metacard), or else to write a bash script as a text file and then get rev to execute that. On 11 June 2010 16:33, Andre Garzia

Monitor Shell Copy File Progress

2010-05-22 Thread Sivakatirswami
) quote) into tShell get shell (tShell) put (cp quote (gLocalProjectPath / tShortFileName) quote quote (gServerProjectPath / tShortFileName) quote) into tShell get shell (tShell) to more files around and rename them... it works great. Is there a way to monitor a background shell

Re: Monitor Shell Copy File Progress

2010-05-22 Thread Alex Tweedly
First thought : I thought (according to Dictionary) that shell would wait until the command was complete before returning - dictionary says The current handler pauses until the shell returns its result. If the command was successful but did not return anything, the shell function returns empty

Re: Monitor Shell Copy File Progress

2010-05-22 Thread Web Admin Himalayan Academy
Aloha, Alex: Nalla Cintanai (Tamil for good thoughts also the name of a famous book in our tradition) Hmmm, I will have to test that wait for shell completion. I'm not seeing that behavior at the moment, it sure seems like the next line runs immediately. I'll throw in an a put statement

Re: Monitor Shell Copy File Progress

2010-05-22 Thread Phil Davis
(according to Dictionary) that shell would wait until the command was complete before returning - dictionary says The current handler pauses until the shell returns its result. If the command was successful but did not return anything, the shell function returns empty. Second try : why take a checksum

Re: An Erlang IDE and interactive shell

2010-05-02 Thread Andre Garzia
here also happens to program in Erlang, but it's something I do quite often and I really hate that there's no real good IDE for it. Anyway, last weekend I decided to put one together in Rev... just something simple that had syntax highlighting and would allow me to interact with the Erlang shell

Re: An Erlang IDE and interactive shell

2010-05-02 Thread Jeff Massung
process as well. There's just a message loop running in the background periodically checking for more data from the Erlang shell. Something akin to: on pingShell if sErl is not among the lines of the openProcesses then exit pingShell end if read from process sErl until empty ## .. put

An Erlang IDE and interactive shell

2010-05-01 Thread Jeff Massung
to interact with the Erlang shell like a simple REPL, but from the editor: http://massj.on-rev.com/im/Erlang_IDE.png Current feature set: * Scratchpad mode where nothing is saved * Syntax highlighting (as you type) * Tabbed editor let's you edit many files at once * Compile modules directly to a running

Re: An Erlang IDE and interactive shell

2010-05-01 Thread Jerry Daniels
quite often and I really hate that there's no real good IDE for it. Anyway, last weekend I decided to put one together in Rev... just something simple that had syntax highlighting and would allow me to interact with the Erlang shell like a simple REPL, but from the editor: http://massj.on-rev.com

RunRev and Linux Shell Scripting (...was Re: Record Audio in Rev on Linux OS?)

2010-04-23 Thread John Patten
...@n4.nabble.com Content-Type: text/plain; charset=us-ascii Invoking the shell command is the easy part. First, you open a terminal and verify that the command or script you want to use works properly from the terminal. For example, if you are going to use krecord you would open a terminal

shell in RevMedia

2010-03-22 Thread François Chaplais
Can someone tell me if the shell function is disabled in the revMedia 4? TIA François ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http

Re: shell in RevMedia

2010-03-22 Thread Peter Alcibiades
It works fine in Linux. I tried put shell(ls) and it supplied a file listing of the directory. Peter -- View this message in context: http://n4.nabble.com/shell-in-RevMedia-tp1678302p1678621.html Sent from the Revolution - User mailing list archive at Nabble.com

Re: shell

2010-01-20 Thread Hershel Fisch
Thanks, but the link is dead. Hershel On 1/18/10 6:36 PM, Alex Tweedly a...@tweedly.net wrote: stephen barncard wrote: My info was taken from an old Nabble forum were Alex offered his stack. It doesn't seem to be on his site or Rev Online anymore - perhaps you could write him. They

Re: shell

2010-01-20 Thread Alex Tweedly
Hershel Fisch wrote: Thanks, but the link is dead. Hershel Most likely it is (as Stephen warned) a problem due to my poor choice of file name - the spaces confuse automatic link-clicking. Copy/paste the whole URL (from http: ... all the way to ... .rev) and see if that fixes it (it does

Re: shell

2010-01-20 Thread stephen barncard
I got it to work by pasting the whole thing into the adr line of a browser and it filled in the appropriate URLEncoding (as browsers for some time have done) - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev 2010/1/20 Alex Tweedly a...@tweedly.net

Re: shell

2010-01-19 Thread Luis
a full statement example? Thanks, Hershel On 1/7/10 5:12 AM, Bernard Devlin bdrun...@gmail.com wrote: Hi Herschel, I am unfamiliar with Hylafax. I don't think shell is going to cut it for your needs. What you may need is open process, write to process and read from process. Open process

Re: shell

2010-01-19 Thread Jim Ault
OK, it has been said that I would chime in at some point, and so here it is. I use UDP for several networking configurations, now and in the past. The computers in one configuration were located in Las Vegas, New York, London, and Vancouver BC. Another configuration is mostly West Coast

Re: shell

2010-01-19 Thread Bernard Devlin
Thanks, Jim. Very interesting reading. Bernard On Tue, Jan 19, 2010 at 10:37 AM, Jim Ault jimaultw...@yahoo.com wrote: OK, it has been said that I would chime in at some point, and so here it is. ___ use-revolution mailing list

Re: shell

2010-01-18 Thread Hershel Fisch
, I am unfamiliar with Hylafax. I don't think shell is going to cut it for your needs. What you may need is open process, write to process and read from process. Open process is kind of like opening a non-visible terminal, where the state of the program opened as a process persists

Re: shell

2010-01-18 Thread stephen barncard
misunderstandings for unpredicted behavior, now my questions if somebody could give a full statement example? Thanks, Hershel On 1/7/10 5:12 AM, Bernard Devlin bdrun...@gmail.com wrote: Hi Herschel, I am unfamiliar with Hylafax. I don't think shell is going to cut it for your needs

Re: shell

2010-01-18 Thread Andre Garzia
Herschel, I am unfamiliar with Hylafax. I don't think shell is going to cut it for your needs. What you may need is open process, write to process and read from process. Open process is kind of like opening a non-visible terminal, where the state of the program opened as a process

Re: shell

2010-01-18 Thread stephen barncard
unfamiliar with Hylafax. I don't think shell is going to cut it for your needs. What you may need is open process, write to process and read from process. Open process is kind of like opening a non-visible terminal, where the state of the program opened as a process persists

  1   2   3   4   5   6   7   >