Home » Developer & Programmer » Forms » How to run Unix Shell Script from Forms by clicking a Button
How to run Unix Shell Script from Forms by clicking a Button [message #86651] Sat, 16 October 2004 09:04 Go to next message
Sunil
Messages: 132
Registered: September 1999
Senior Member
Hi ! Experts

Please tell me how to run Unix Shell Script from Forms by clicking a Button in the WHEN-BUTTON-PRESSED trigger. Is there any built-in or any other method to do it ?

Waiting 4 ur reply ...

Sunil.

 
Re: How to run Unix Shell Script from Forms by clicking a Button [message #86679 is a reply to message #86651] Tue, 19 October 2004 00:50 Go to previous message
Himanshu
Messages: 457
Registered: December 2001
Senior Member
Hi,
Try
HOST( 'rsh systemname test.sh' );

Note:
1.The rsh command supports execution of a single command on a remote host.If you need to execute multiple commands, put them in a script and execute the script.
2.rsh does not support interactive commands.You must provide all necessary parameters to the command for it to execute successfully without operator intervention.


Or

host('secureCRT /ssh2 my_sunbox /L username /password password');

Or

You may make use of DBMS_PIPE package to achive this.

HTH
Regards
Himanshu
Previous Topic: Customize logon screen, Message line and status bar.
Next Topic: How to run a file with .bat ext from form
Goto Forum:
  


Current Time: Mon Sep 09 17:37:05 CDT 2024