exec foreground process

java-forums.org - 2013-06-08 11:44:35 - Similar - Report/Block

I have a java app that displays a slideshow. Some of the files are movies instead of photos. When a movie comes to be displayed the action depends upon the OS. On Mac OS X it calls exec() VLC to play the movie. This works, but... VLC displays behind my App. OK so I add -video-on-top to VLC command line. Movie now visible but VLC is still...

Send Ctrl-C to process open by Java

stackoverflow.com - 2009-12-02 22:16:04 - Similar - Report/Block

Under Windows OS. I start a sub-process via a Runtime.getRuntime().exec(); I want to send a "ctrl-c" to the process to stop it. I did a small example, with Runtime.getRuntime().exec("ping google.com -n 100000"); The code can be found there : http://pastebin.com/f6315063f So far, I tried to send the char '3' (ctrl-C character) via Process...

Run execute file in Runtime.exec() and get user input

stackoverflow.com - 2013-05-15 09:49:29 - Similar - Report/Block

How to run c execute file with user input in Java Runtime().exec() . Without user input in my c program execute file runs in Runtime().exec() For example: Below c program if n is predefined and it's execute file runs in java runtime()...If n is a user input how to run the execute file? #include #include #include int main() setbuf(stdo...

can I change user password in linux from java program?

stackoverflow.com - 2012-06-01 09:34:40 - Similar - Report/Block

I am trying to change user password in linux from java program by sending password in outputstream but it is not done. My java program is like Process process = Runtime.getRuntime().exec("passwd sampleuser"); OutputStream outputStream = process.getOutputStream(); InputStream inputStream = process.getInputStream(); PrintWriter printWriter=...

How to get ProcessStartInfo with arguments from a java process By using C#?

stackoverflow.com - 2013-05-09 11:20:17 - Similar - Report/Block

I am trying to get a java Process object by using C#. The thing is i have several java Processes running on my computer. Following is the way i chose to get Processes: Process[] processes = Process.GetProcessesByName("java"); foreach(Process proc in processes){ //I need a filter here to get the correct process. The java Process is also c...

Java error "Value of local variable is not used"

stackoverflow.com - 2012-06-16 13:15:29 - Similar - Report/Block

I am really new to java (started learning 2 days ago). Sorry if this is a stupid question. I am trying to learn how to use rt.exec & similar methods so I tried to make a very simple program which runs calc.exe. This is the code: public class main { try { Runtime rt = Runtime.getRuntime() ; Process p = rt.exec("calc.exe") ; catch(Excep...

Java exec jar - strange freezing ouput only on windows XP

stackoverflow.com - 2012-04-04 17:43:32 - Similar - Report/Block

I have got a Java application which calls: Process pr = Runtime.getRuntime().exec(...) and this "exec method" executes some other java app (jar file). The executed application has some output, which I am catching using pr.getInputStream() . I tried to use BufferedReader calling readLine() as well as Reader calling read() When I start...

Typical build process of Java application

stackoverflow.com - 2012-05-08 13:41:03 - Similar - Report/Block

Being new to Java, I am not able to understand the complete build process from source code to hardware specific binaries. Basically I am using Eclipse for java and would like to know what all conversions takes place from source code(.java) to binary, what all files are linked using some linker, preprocessor etc etc. Shall appreciate if yo...

How to execute perl script from java in ubuntu

stackoverflow.com - 2012-09-14 17:24:54 - Similar - Report/Block

I have a perl script that needs 2 arguments to be run. I am currently using Ubuntu and I managed to execute the perl script from terminal by changing directory to where the perl script exists and by writing perl tool.pl config=../mydefault.config file=../Test However, when I am trying to run the perl script from my java program (I am usin...

Runtime.getRuntime().exec() issue with Windows NFS in Java

stackoverflow.com - 2012-04-05 03:48:54 - Similar - Report/Block

I have NFS installed for Windows 2008 but when I try to access C:/Windows/System32/mount.exe or umount.exe and execute it in Java, I get an IO Exception that the file cannot be found. Runtime.getRuntime().exec("C:/Windows/Sy stem32/mount.exe <location> J:"); This also doesnt work if you were thinking it might: Runtime.getRuntime().ex...

PHP json_encode to JS object not usable

stackoverflow.com - 2013-03-17 15:07:03 - Similar - Report/Block

I have an some PHP that looks like this: $exec[0] = shell_exec("cat /etc/msm.conf | grep JAR_PATH"); $exec[1] = shell_exec("msm server list"); if(strstr($exec[1],'[ ACTIVE ] "mc-srv" is running. Everything is OK.') !== FALSE){ $exec[1] = 'mc online'; }else{ $exec[1] = 'mc offline'; $exec[2] = shell_exec("sudo ts status"); if($exec[2]...

Having trouble starting a program with the Runtime.getRuntime().exec(command)

stackoverflow.com - 2012-05-15 20:05:43 - Similar - Report/Block

I'm currently writing a Java program that can open .exe programs on my PC, like MS Word for example. I am having a problem though, because Runtime.getRuntime().exec() will only successfully open certain programs. I have used the exact same code for all the programs, but regardless, some programs won't open. Here is my code for a program I...

evolveStar Join

segfault : how to debug

stackoverflow.com - 2013-02-21 08:17:41 - Similar - Report/Block

I have a master process that accepts connections and depending on the request, "exec"s a process . The process intermittently crashes with the error : segfault at 11 ip 000000004daa242b sp 00000000ffdc4b18 error 4 in libc-2.5.so[4da32000+153000] How do I go about debugging this? This coming from libc is not helping me much in terms of eve...

Start Windows Service with Java

stackoverflow.com - 2012-03-20 18:37:13 - Similar - Report/Block

I am trying to start a windows service in java using this public static void main(String[] args) throws IOException { String startCom = "net start"; String startProc = "\"C:/Program Files/Common Files/Apple/Mobile Device Support/bin/AppleMobileDeviceService.exe \""; Runtime rt = Runtime.getRuntime(); Process...

External Program inside a JPanel

java-forums.org - 2012-08-30 18:42:46 - Similar - Report/Block

Hello, I'm trying to run an existing executable from my Java program, say "C:\Windows\System32\calc.exe" I know that I can start the process via the command: Process p = Runtime.getRuntime().exec("C:\\Wind ows\\System32\\ calc.exe"); The catch is that I want it to be contained inside my JPanel with no title bar or frame...

EditText user input to command line ( echo "user input here" ect. )

stackoverflow.com - 2012-05-04 19:54:28 - Similar - Report/Block

I am a beginner on Java and Android SDK, started learning java for 2 weeks and already trying to get my first app running. I need to get the Integer input from the user ( from the EditText numerical ) to make it to a command line, But I dont seem to get it working, if I change the cmd line to ( "echo 255 > ... ") it works, but if I try t...

Why Runtime Blocked in Android 4.0/4.0.3?

stackoverflow.com - 2012-03-27 11:17:55 - Similar - Report/Block

My UI blocked only in 4.0.* by using clause:"Runtime.getRuntime().exec("cat proc/meminfo");". Is there something wrong in following code? Thanks in advance. 03-27 13:37:18.545: I/MyActivity(19730): ini().429: 1332826638549 03-27 13:37:18.545: I/MyActivity(19730): ini().434: 1332826638549 03-27 13:37:18.865: D/dalvikvm(19611): GC_CONCURREN...

Redirect stdout pipe of child process in golang (SOLVED)

stackoverflow.com - 2012-01-16 01:52:01 - Similar - Report/Block

I am writing a program in go that executes a server like program (also go). Now I want to have the stdout of the child program in my terminal window where I started the parent program. One way to do this is with the cmd.Output() function, but this prints the stdout only after the process has exited. (Thats a problem because this server-l...

iOS Java SocketException

stackoverflow.com - 2012-05-06 08:00:41 - Similar - Report/Block

I'm running Java on a JVM on iOS. When I try to receive data using a POST request from a webpage, and the connection can not be established (client sided), I get the following error: java.net.SocketException: Invalid argument at gnu.java.nio.VMChannel.getpeername(Nativ e Method) at gnu.java.nio.VMChannel.getPeerAddress(VM Channel.java:471...

Querying Active Directory via Java

stackoverflow.com - 2010-12-16 00:59:17 - Similar - Report/Block

What is the best way to query Active Directory from Java? Now I know that .NET has special methods built in for doing this sort of thing. But in Java, would calling a Powershell script by launching a process/command line be a good way of doing this? Furthermore, why is the decision taken to call C# from Java anytime Java needs to access W...

Java certificate checks botched

h-online.com - 2013-03-07 09:56:00 - Similar - Report/Block

Java web security has depended on a certificate signing process to grant applets and applications higher privileges, but deficiencies in the default settings mean that Java users are vulnerable to social engineering delivering malware...

How to echo IStreamProxy.write() to Eclipse console

stackoverflow.com - 2012-04-02 11:51:02 - Similar - Report/Block

Inside a LaunchConfigurationDelegate#launch() method I am running an external process with: Process process = DebugPlugin.exec(command, workingDir); IProcess iProcess = DebugPlugin.newProcess(launch, process, "myprocess"); This correctly launches the process and shows the output in a nice Eclipse console. I then want to pass commands int...

Rails server hangs when started with foreman

stackoverflow.com - 2012-08-08 02:50:46 - Similar - Report/Block

Here's what my Procfile looks like: web: bundle exec rails server thin -p $PORT -e $RACK_ENV worker: bundle exec rake jobs:work I intend to add a worker process because I wish to run some background jobs. I'm following these instructions This is what I noticed: - No problems encountered with only web process running, i.e., if I delete th...

Jetty running via Maven on OSX - prevent "Launcher" app from opening

stackoverflow.com - 2012-04-27 20:33:28 - Similar - Report/Block

We have a java app that uses an embedded jetty container. When we start it via maven on OSX via mvn jetty:run a java app opens with the title org.codehaus.plexus.classworlds.launcher .Launcher . When it opens it steals focus from whatever is in the foreground. Is there any way to prevent it?...

Why does an Ant Exec task return code not match ERRORLEVEL value?

stackoverflow.com - 2013-02-20 02:44:09 - Similar - Report/Block

I have a batch script called from Ant exec task to compile some CSharp code. The batch script is structured in the following way msbuild.exe %ARGS% echo %ERRORLEVEL% Now when the task is run in Ant, I get the following result: [exec] Time Elapsed 00:00:09.48 [exec] 0 BUILD FAILED C:\proj uild.xml:410: exec returned: 2 How is it possib...

Android - tablet show status bar

stackoverflow.com - 2013-02-26 17:58:16 - Similar - Report/Block

I got issue with Nexus 10 - 4.2.2. I was testing this on Galaxy Tab 10.1 with 4.0.3 and it was working fine: try Process proc = Runtime.getRuntime().exec(new String[]{"sh","startservice","-n","com.a ndroid.systemui/.SystemUIService"}); proc.waitFor(); catch (Exception e) e.printStackTrace(); try //REQUIRES ROOT Process proc = Runti...

Does 64-bit java 1.7 ignore the minimum heap size flag?

stackoverflow.com - 2012-03-16 00:00:47 - Similar - Report/Block

java -Xms is apparently not having an affect on the amount of memory the java process consumes during a run. I have an app that consumes about 1Gb from the system point of view. I tried setting -Xms2048m (and -Xmx4096m) and I see absolutely no change in memory consumption. The hotspot docs claim the heap size is bounded below by the Xms...

Application is not installed to app folder after Executing sudo terminal command in Java

stackoverflow.com - 2012-09-11 13:10:01 - Similar - Report/Block

I am trying to execute below terminal command in Java to install the app automatically, but even though am not getting any error after executing java progrma, application is not getting installed. But if execute in terminal app is getting installed in App folder. Pls guide me how to implement the below sudo installer command in Java. term...

Hibernate - OutOfMemoryError - java heap size

stackoverflow.com - 2012-03-10 09:09:09 - Similar - Report/Block

I'm currently having this problem where I am executing a query that will load large of records. At first execution, it is successful, but when I execute again, I am having java heap size out of memory. I Know I can increase java heap size using command line, but that requires a compiled jar file. But I am currently on the development proc...

Microsoft Ribbon for WPF RibbonGallery Exception

stackoverflow.com - 2012-03-09 13:28:54 - Similar - Report/Block

i want to hava a RibbonGallery in my menue (like This is my code: <r:RibbonGroup> <r:RibbonGallery SelectedValue="Green" SelectedValuePath="Content" MaxColumnCount="1"> <r:RibbonGalleryCategory> <r:RibbonGalleryItem Content="Green" Foreground="Green" /> <r:RibbonGalleryItem Co...

heroku delayed_job stalling though process is running, rails

stackoverflow.com - 2012-05-13 06:50:09 - Similar - Report/Block

im trying to get delayed_job to work in heroku. ive been following https://devcenter.heroku.com/articles/de layed-job https://devcenter.heroku.com/articles/pr ocfile i created a Procfile on my root and passed in worker: rake jobs:work my delayed_job works on my development machine when i do either rake jobs:work foreman start however, on he...

how to develop background removal using chroma keying in opencv

stackoverflow.com - 2013-02-18 14:48:30 - Similar - Report/Block

I need to develop an algorithm to remove a background from the foreground image. I would like to use chroma keying. This will be done on a live camera stream and I need to do it using OpenCV in C++. The algorithm I thought would be something like: Capture frame from webcam into matrix Compute 3d rgb space graph The points around a certain...

Calling exec returns errno 14 (bad address) with absolute path

stackoverflow.com - 2012-03-24 20:42:29 - Similar - Report/Block

in making a simple cgi server for a course. To do that in some point I have to make a fork/exec to launch the cgi handler, the problem is that the exec keep returning errno 14. I've tried the following code in a standalone version an it works with and without the absolute path. Here's the code: static void _process_cgi(int fd, http_conte...

Instagraph PHP photo editing exec() function does not execute function, but works on command line?

stackoverflow.com - 2012-04-06 07:57:27 - Similar - Report/Block

I am trying to add the gotham feature found in Instagram via PHP and ImageMagick (http://net.tutsplus.com/tutorials/php/c reate-instagram-filters-with-php/) The script given doesn't work, but the commands do. When I generate the commands and copy and paste them to a command line, they work fine. Yet when I try to execute them with exec(),...

Why won't my background color display in JFrame?

stackoverflow.com - 2012-06-29 22:11:49 - Similar - Report/Block

I have two class files: Screen https://gist.github.com/3020101 JMain https://gist.github.com/3020107 I'm trying to get it to go fullscreen for 5 seconds and display the background (or, at this point, even the foreground) but when I run it it goes fullscreen for 5 seconds, yay, but it is just a blank light grey screen. What am I doing wron...

Maintain keyboard open/closed state for EditText when app comes to foreground

stackoverflow.com - 2013-03-04 13:40:07 - Similar - Report/Block

I have an Activity which is recreated on a config change (desired). I have a DialogFragment which calls setRetainInstance(true) with a single EditText in its layout. In the DialogFragment's onActivityCreated I call: getDialog().getWindow().setSoftInputMode (WindowManager.LayoutParams.SOFT_INPUT_S TATE_VISIBLE); A) If I open the keyboar...

Better to process JSON in Java or Javascript?

stackoverflow.com - 2012-03-29 23:23:00 - Similar - Report/Block

Simple enough really. I have a horrible amount of JSON to process, 100GB in total. This 100GB is split into files which are typically 1mb each. So this left me wondering, typically speaking would it be quicker to parse a JSON file in Javascript or would I have similar results processing the file using one of Java's JSON jars? Now obviousl...

Is the exec run sequentially causing the 500 internal server error?

stackoverflow.com - 2013-03-19 08:17:09 - Similar - Report/Block

exec("convert -density 40 -colorspace srgb ".$incoming_path.DIRECTORY_SEPARATOR.$in comingPdf." -quality 80 ".$gen_folder_path.'med'.DIRECTORY_SEPAR ATOR.$incomingBaseName.".jpg"); checkSuccess($incomingBaseName.'.jpg',$g en_folder_path.'med'.DIRECTORY_SEPARATOR ,'med'); exec("convert -density 15 -colorspace srgb ".$incoming_path.DIRECTORY_S...

Using node.js to queue processes so that only one process runs at a time

stackoverflow.com - 2012-03-01 06:37:12 - Similar - Report/Block

I am trying to write node.js-based http server that responds to requests to update client records. These requests ask the server to do work on the server side but do the request does not need to wait for the server-side work to finish. My code looks like this: var http = require('http'); http.createServer(function (request, response) {...

Запуск java из C# - C# для начинающих

cyberforum.ru - 2013-04-30 17:42:51 - Similar - Report/Block

Нужно запустить jar файл из C#, в батнике это делается так: java -jar part/to.jar В C# пробовал так: Код: ProcessStartInfo startInfo = new ProcessStartInfo("java", " -jar part/to.jar") Process.Start(startInfo); "System.ComponentModel.Win32Exception": Не удается найти указанный файл. Можно напрямую указать путь к java.exe, но он разный на...


Fill out the form you see below. Registration is free, fast and simple.
If you are already registered, sign in page login.

Web Site :
Required Field
First Name :
Required Field
Last Name :
Required Field
Email :
Required Field
Sex :
Required Field

evolveStar.com is free for ever !

evolveStar.com provides a search engine that allows you to gather information to write their own blog.

evolveStar.com enhances the sources displaying the logo of the site.

If you want to remove your site or you believe a site listed infringes copyright, please report it to: info@evolvestar.com

Specifies the subject copyright violation and the url of the page

evolveStar.com respecting the law DMCA (Digital Millennium Copyright Act) will immediately remove whatever its merits.

Next will be effectual and relevant checks.

Who We Are Partner Advertising Contacts Privacy terms Help & FAQ

© Copyright 2010-2017 Fabrizio Fichera. All rights reserved.