execute adb shell command at runtime from the android application

stackoverflow.com - 2010-04-12 13:15:03 - Similar - Report/Block

In my application I want to create a directory xyz in sdcard at the runtime from the my Application. But it doesn't work. Here is my code.. public class process extends Activity /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) super.onCreate(savedInstanceState); setContentView(R...

Plink error - "unix shell commands cannot be executed using this account"

stackoverflow.com - 2013-06-02 12:34:21 - Similar - Report/Block

I'm trying to run plink.exe to execute a command on a remote UNIX machine. When logging in using Putty, my command is executed successfully. My problem is when using the same credentials (same user and password) to execute the same command exactly with plink. I keep getting a message "UNIX shell commands cannot be executed using this acc...

Spawn inside spawn nodejs

stackoverflow.com - 2013-03-21 02:58:41 - Similar - Report/Block

I'm new on nodejs, and here is my question. A bit of background: I have two commands I run on my shell. The first one will set some env variables and log me into a new shell. For example: $ cmdpk giveMeShell Will give me a new shell, Then: $ cmdpk execThis Will execute inside that new given shell. If I execute cmdpk execThis without firs...

Userform with Command Button to Load and Execute from a Textfile

excelforum.com - 2013-04-17 10:55:52 - Similar - Report/Block

Hi - I am fairly new to VBA (about 1 year) but have a project on the go and have encountered a problem: Here is what I have right now: 1. Load a UserForm with a variety of command buttons one of which has an Exit function and one a Load function (amongst others) 2. The Exit button is used to terminate a "session" (not close the workbook)...

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...

How to execute a server command using php?

stackoverflow.com - 2012-03-19 13:24:52 - Similar - Report/Block

I have some programs installed at the server side of my LAN . I want the client to be able to execute the server function for instance "svn --help" using command line .. My server url for eg xx.xxx.x.xxx I know that passthru() is the function i have to use . How can I make my client to communicate with the server using command line to exe...

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...

Eclipse CDT C/C++ Build Command error

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

(sorry for my bad english...) I'm trying to build my .so library in Eclipse, with the CDT plugin. (It's an android project, with native code...) I changed the build command [Project-> Properties-> C/C++ build] to suit my needs: C:\SDK ndroid-ndk-r8\ndk-build.cmd But I got this message in the console: C:\SDK ndroid-ndk-r8\ndk-build.cmd Can...

batch script print the command that would be executed rather than executing

stackoverflow.com - 2012-04-13 10:15:08 - Similar - Report/Block

Is it possible to set a cmd.exe shell / batch file to print what would be executed but not actually execute it? For example, given a batch file that takes some arguments, based on those arguments selects some other batch files to run, those batch files execute some commands, may or may not call other files/commands etc. I would like to be...

exec command android native code

stackoverflow.com - 2012-03-02 09:24:47 - Similar - Report/Block

iam trying to launch android applications from native code.. in adb shell we can launch applications using "am" command.. link: How to run(not only install) an android application using .apk file? is there any way to invoke this "am" command through C code... i tried following line but exec is returning -1 ret = execl("/system/bin/am", "s...

Emacs Python-inferior shell not showing prompt after matplotlib show() command

stackoverflow.com - 2012-02-01 20:17:22 - Similar - Report/Block

So I've been experimenting with numpy and matplotlib and have stumbled across some bug when running python from the emacs inferior shell. When I send the py file to the shell interpreter I can run commands after the code executed. The command prompt "> " appears fine. However, after I invoke a matplotlib show command on a plot the shell j...

Bash Script: Execute multiple command in single line && get the return code

stackoverflow.com - 2013-04-12 03:12:35 - Similar - Report/Block

I have a bash script file to process something. control.sh : c_command="echo 'Hello'; echo ', Stack Overflow';exit 9"; $c_command; stat=$?; if [ $stat -eq 0 ];then echo 'Do something....' elif [ $stat -eq 9 ];then echo 'The system will be rebooting...'; else echo "..." fi I use the variable $c_command to execute the command, And...

evolveStar Join

How to set a crontab job for a perl script

stackoverflow.com - 2012-03-24 07:56:11 - Similar - Report/Block

I have a PERL script which i want to run every 4 hours through cron. But somehow it fails to execute through cron and runs fine if i run it through command line. Following is the command which I set in crontab perl -q /path_to_script/script.pl > /dev/null Also, when i run this command on command prompt, it does not execute but when i go...

Is this a wise running line?

dbforums.com - 2013-04-23 17:20:38 - Similar - Report/Block

Hallo everyone, I am running my sql script over command line like this: Code: db2 -mtf ${EXPORTSQL5} &> ${EXPORTSQL5}.log || die "Error in 5th Script" From the db2 documentation, it says: Quote: DB2 command or SQL statement executed successfully SELECT or FETCH statement returned no rows DB2 command or SQL statement warning DB2 command or...

How do I execute a command every time after ssh'ing from one machine to another?

stackoverflow.com - 2008-11-14 02:37:28 - Similar - Report/Block

e.g ssh mymachine stty erase ^H I'd rather just have "stty erase ^H" execute every time after my ssh connection completes. This command can't simply go into my .zshrc file. i.e. for local sessions, I can't run the command (it screws up my keybindings). But I need it run for my remote sessions.

Translating shell script into Windows command shell script (batch)

stackoverflow.com - 2013-06-11 19:19:01 - Similar - Report/Block

I have a shell script which makes directories week_01 to week_09 using a for loop and one another directory called week_10 . I want to translate this shell script into Windows commands using two lines of code? Shell Script: #!/bin/bash for (( Y=1;Y<=9;Y++)) mkdir week_0$Y done mkdir week_10...

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...

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...

How to execute a command when the user opens the DatePicker calendar in WPF?

stackoverflow.com - 2012-02-23 17:22:08 - Similar - Report/Block

I'm using a DatePicker in a WPF window and I need to execute a command to refresh the MVVM data when the user tries to open the calendar window. The DatePicker does not have a Command property. Is there a way to accomplish this? Thanks.

Multiple context menu run as administrator through registry editor

stackoverflow.com - 2013-03-23 12:42:41 - Similar - Report/Block

I am trying to create two context menus for .EXE files in Windows 8, both of which will need admin privileges. As I can see in registry, HKEY_CLASSES_ROOT\exefile\shell\runas can only have one command and it is being used by the "Run as administrator" context menu. Right now, I am using this code in a .reg file: [HKEY_CLASSES_ROOT\exefile...

Why CTRL+C won't work when using RS-232 on Linux?

stackoverflow.com - 2012-05-06 04:44:48 - Similar - Report/Block

First of all, I don't know if this should stay in SO or go to SU: you tell me. The solution might have to do with programming. I am executing Linux on an embedded device and communicating with it using RS-232 @ 9600 bauds. Everything works fine using PuTTY on Windows: I have a shell and can type and execute commands. The problem is: when...

command 0.4.12

freshmeat.net - 2013-04-12 10:31:14 - Similar - Report/Block

command is a commandline application which wraps bash functions into a command. It automates handling of the options of a command and includes -help and -version options. Release Notes: This release stabilizes, cleans, and maintains the code, improves a man runtime extrahelp note on usage, and fixes tests to the new API. Tags: Command L...

Passing shell commands with Python os.system() or subprocess.check_call()

stackoverflow.com - 2012-07-24 03:47:54 - Similar - Report/Block

I'm trying to call 'sed' from Python and having troubles passing the command line via either subprocess.check_call() or os.system(). I'm on Windows 7, but using the 'sed' from Cygwin (it's in the path). If I do this from the Cygwin shell, it works fine: $ sed 's/&amp;nbsp;/\&nbsp;/g' <"C:foobar" >"C:foobar.temp" In Python, I...

Polymorphism with gson

stackoverflow.com - 2011-04-27 08:47:03 - Similar - Report/Block

I have a problem deserialize json string with gson. i basically recieve an array of commands. the command can be start or stop or some other type of command. so naturally i have polymorphism, and start/stop command inherit from command. how can i deserialize it back to the correct command object using gson? seems that i get only the base...

What are the parameters for "printto" using shellexecute?

stackoverflow.com - 2012-06-05 15:58:09 - Similar - Report/Block

I'm using Delphi's winapi ShellExecute to try to print to a user selected printer and not the default printer. I'm trying to figure out the syntax for a command using the printto verb. What would an example shell execute statement look like if I wanted to print manual.pdf to a HP Laser Jet 4 with IP address (this is just an...

Loading JRuby at runtime and ClassLoader leak

stackoverflow.com - 2012-03-02 23:24:14 - Similar - Report/Block

I'm trying to load JRuby dynamically at runtime (so I can execute Ruby code using arbitrary JRuby installations and versions). My plan is roughly to create a ClassLoader that has access to jruby.jar , then use that to load the necessary JRuby runtime etc. All was well until I needed to do this multiple times. If I destroy the first JRu...

Python calling shell commands. What type of shell is started?

stackoverflow.com - 2012-03-02 20:38:26 - Similar - Report/Block

I have the following python function that allows me to run shell commands from within a python script: import subprocess def run_shell_command(cmd,cwd=None): retVal = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, cwd=cwd); retVal = retVal.stdout.read().strip('\n'); return(retVal); This allows me to do thing...

using ulimit for current shell

stackoverflow.com - 2012-05-18 11:04:52 - Similar - Report/Block

I want to increase the hard limit of maxfiles using ulimit -Hn for the current bash shell. The problem is I can not do it without using sudo. But, when I do sudo ulimit -Hn unlimited, it does not effect the current shell's limits. Is there a way to achieve it for the current shell from with we are issuing the ulimit command? I am using Ma...

How to use subprocess.call without shell=True

stackoverflow.com - 2012-05-31 04:19:20 - Similar - Report/Block

The documents recommend against using subprocess.call with shell=True , however when I try to do something as simple as call(['convert']) I get an error: Must specify a file system When I run the same command via cmd.exe, I get C:\Users\Mark>convert Version: ImageMagick 6.7.3-6 2011-11-10 Q16 http://www.imagemagick.org etc., i.e., it...

PyCrypto: Generate RSA key protected with DES3 password

stackoverflow.com - 2012-04-02 17:39:58 - Similar - Report/Block

I have been able to create a RSA key protected by password with DES3 (well... I think because I'm very new to this encryption world) by using the command: openssl genrsa -out "/tmp/myKey.pem" -passout pass:"f00bar" -des3 2048 Now, I would like to do that inside a Python script, using PyCrypto, if possible. I have seen this message , whic...

excel vba wait for shell command to complete

stackoverflow.com - 2013-04-11 14:46:05 - Similar - Report/Block

So I'm running a simple shell command in Excel VBA that runs a batch file in a specified directory like below: Dim strBatchName As String strBatchName = "C:\folder\runbat.bat" Shell strBatchName But the issue is sometimes the batch file might take longer on some computer to run, and there are proceeding VBA code that is dependent on the b...

How to execute Operating System command in Stored Procedures without java

dbforums.com - 2013-04-12 05:14:38 - Similar - Report/Block

Dear all, Is anyone can guide or provide your help on how to execute Operating System Command from PL/SQL without using Java or Java Stored Procedures? I am testing it in local machine not on the server. I am using Oracle 11g Release 2. Appreciate anyone can help. Thanks.

Creating cron entry on server using ssh login within shell script

stackoverflow.com - 2011-02-17 21:37:32 - Similar - Report/Block

I need to upload a file (bash script) to a remote sever. I use the scp command. After the file has been copied to the remote server I want to create a cron entry in the crontab file on the remote server. However, the file upload and writing the cron entry need to occur within a bash shell script so that I only need to execute the script o...

Execute command in PHP returns error code 127

stackoverflow.com - 2013-02-04 08:58:43 - Similar - Report/Block

I am trying to execute cs2cs command for converting data format. But it always returns error code 127 Here is the code snippet: $r = system('echo "830404.55 810145.46" | cs2cs +init=epsg:2326 +to +init=epsg:4326 -f %.10f', $result); //$r = system('sh /var/www/html/et/test.sh', $result); // returns error code 127 echo $r.' '; // print noth...

Exporting the sqlite3 table into file using "C" execute API

stackoverflow.com - 2012-07-02 07:40:09 - Similar - Report/Block

I am using sqlite3 version in fedora 14.I am able to export table into the file using command prompt like this, sqlite3 data.db sqlite> .output sample.txt; sqlite> select *from sample; I want handle this case at the application level. I am using sqlite3 open source "C" API to execute this command in application level. execute("de...

Powershell Errors out correctly in ISE but doesnt in Command line execution

stackoverflow.com - 2012-07-09 22:19:05 - Similar - Report/Block

I am running a command in powershell ISE that was exiting out how I expected, but when I moved the code to command line to execute in different environments, I wasnt receiving the error anymore. The error only happens in ISE. I have tried to use -sta on the command line like others posted, but have not had luck. $SIEBEL_HOME\srvrmgr.exe /...

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(),...

Using Command Line Switches to Save a PDF as Text - Can it be done?

stackoverflow.com - 2009-07-28 21:09:46 - Similar - Report/Block

I need to use command line switches to execute the 'Save as Text' command. Ideally, I want to: use a command line switch to open a PDF use a command line switch to convert the PDF to a text file by mimicking the 'Save as Text' command. use a command line to close the PDF. Is this possible? If so, then does anyone know how to do this?...

Command for loading jQuery on Google Chrome inspector?

stackoverflow.com - 2012-03-08 22:08:36 - Similar - Report/Block

I remember seeing that there was a specific command you could put on Google Chrome's inspector console for it to load jQuery and allow you to execute jQuery commands. However, I cannot remember which command it was, and searching online only brings me unrelated results. Anyone knows which is that command? Thanks!...

سوال: مشاهده نشدن Command prompt پس از اجرای فایل bat با دستور Shell

barnamenevis.org - 2013-06-02 11:51:19 - Similar - Report/Block

با سلام خدمت دوستان گرامی می خواهم برنامه ای بنویسم که زمانیکه با استفاده از دستور Shell ، فایل bat را اجرا نمودیم، زمان اجرا، command prompt در پایین صفحه مشاهده نشود. پیشاپیش از راهنمایی تان یک دنیا ممنون...


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-2015 Fabrizio Fichera. All rights reserved.