shellexecute

How to execute an script from another path

Hi! I want to execute myscript.sh from a java project. The call I want to do is something like this: Process p = Runtime.getRuntime().exec("./myscript.sh "+param1+" "+param2); The problem is that this script.sh is not in the same path, so I tryed to do: Process p = Runtime.getRuntime().exec("src/main/resources/./myscript.sh "+param1+...

shell_exec phpfile

Atmoment i use this code: if(isset($_POST['url']) && isset($_POST['trefwoorden']) ) { mysql_connect('localhost', 'crawler', 'whathasbeenseencannotbeunseen'); mysql_select_db("crawler"); mysql_query("INSERT INTO jobs (jobID, url, trefwoorden) VALUES ('', '".$_POST['url']."', '".$_POST['trefwoorden']."')"); $output = shell_exec("....

How do I fix "Permission denied" when I try to run an external Perl script?

system("logscr.ply "); The error I get is this: Can't exec "logscr.ply": Permission denied at eal.ply line 3 Why am I getting the error, and how do I fix it? ...

inkscape shell mode

I tried to run inkscape shell mode by writing these lines in a .bat file: inkscape --shell >2.svg -e 2.png But it doesn't work at all (no png files), more over I tried to open the current svg input and I found it damaged and I failed to open it at all. Could any one please tell me the right command lines to enter the SHELL mode and ...

Can I open office communicator (Lync 2010) in chat mode?

In an Win/IE environment with the right settings you can fire up a .exe file. The following code runs fine to fire up Microsoft Lync (the new name for Office Communicator). ... <a href="#" onclick="fnShellExecute();">start chat</a> </body> </html> <script type="text/javascript"> function fnShellExecute() { var obj...

executing .exe from using visual basic 6

Hi, I'm new to visual basic. I'm trying to execute .exe file from VB. But I'm not getting the output. My .exe is having command line args. Following is my code Private Sub Command1_Click() Shell "D:\FEP\extractFEPData.exe data.txt", vbNormalFocus End Sub In cmd prompt If I give command extractFEPData.exe data.txt It is parsing t...