How can I execute command passwd in solaris with Java (ProcessBuilder)
Hi all, my problem is that I want to change the user password in solaris 10, but from a Java programm, I was trying with ProcessBuilder but I don't know how insert the new password, Who can help me?
I'm not sure, but I think passwd is one of those programs that only lets itself be run interactively from a terminal.
Similar Messages
-
How can i execute excelsheet without giving path in java
Hi,
How can i execute excelsheet without giving path in java, through this code, you can open the notepad but
I want whereever the excel is installed in your machine , fine and open excelsheet without given absolute path.
class ExecuteCommand{
public static void main(String d[]){
Runtime r = Runtime.getRuntime();
Process p= null;
try{
p = r.exec("notepad");
catch(Exception e){
System.out.println("error");
If you know please send me your idea and code samples.
regards
Mohan kumarjust execute the exelfile with the Windows "start" command:
Runtime.exec("cmd /c start "+excelFileName);But this requires that Excel is the default application for the Excel file type (*.xls). You can test this by simply typing "start myTestExcel.xls" in a dos box. -
How can I execute a batch file from my java program
Hi,
Can someone help me or direct me to a link,
How can I execute a DOS batch file from my java program?
ThanksYou will need to grab a handle to the process's
outputstream so u can see its output.The OP didn't mention any output from any batch file;
nor any input for that
matter,so lets not complicate matters here for now
ok?Actually I think this is essential to see whether it works or not. It's either that or do some manual check to see whether it ran, which is not exactly elegant, and in some cases this may not be easier than simply writing the output stream code, or in fact it may be impossible to check manually.
I'm sure it wasn't intentional that your post appeared to be bristling with attitude. -
How can i execute a .jar or .jad through java?
I want to execute a .jar like i do in SE using the class RunTime in ME does anybody know how can i do it? There is no method exec in MIDP Runtime API
I have a MIDlet that receives a jar file from another PDA using DatragramConection and FileConnection. It's working well. When i'm running my application i'll send the jar file to another aplication and this application should receive, execute and return the result. For example, if i have a simple program that prints Hello World. I'll send the program the other PDA will execute and then return a String. I have to call the jr file through java because my MIDlet wil be already running.
Could you understand my problem? -
How can I make Edit/Default Customization form with Java ?
In previous portal relise developers have simple way to rendering Edit/Default Customization form:
<% PortletRendererUtil.renderCustomizeFormHeader(portletRequest, out, null, "services_action", null, null); %>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="2">
<TR>
<TD>Days</TD>
<TD><INPUT TYPE="text" NAME="services_days" VALUE="<%= days %>" SIZE="10"/></TD>
</TR>
<TR>
<TD>Rows</TD>
<TD><INPUT TYPE="text" NAME="services_rows" VALUE="<%= rows %>" SIZE="10"/></TD>
</TR>
</TABLE>
<% PortletRendererUtil.renderCustomizeFormFooter(portletRequest, out); %>
In current portal version I can not find these methods, these methods not exists in JavaDoc and in jar's. And all old code do not works!!! Why?
I must hide portlet borders and use <renderContainer>false</renderContainer> in provider.xml. Then portal do not render Edit/Default Customization form in Edit/Default mode. In previous relise I can make this form with Java code.
My question: how I can get Edit/Default Customization form in Edit/Default mode with Java code?
Thanks in advance
CheslavHi George, the trick is to figure out which browser is your default now, and remove that designation using the Android settings for Apps. It might be Chrome or it might be something Samsung provides.
This article has more information: [[Make Firefox the default browser on Android]].
Does it work? -
Technology P2P with JAVA (How can i do for implement this tech with JAVA B)
Thanks for read this message,,, I will glad with you if you can help me...
I would like desing, make, build, a point to point aplication with JAVA Builder, I have been reading about sockets but its not enought,,,,,,
can you help me????
ThanksWell , thanxs for take attention,,,
I need some information about Point to Point tech because I would like to make an aplication with JAVA Builder...
First step is to know how works the point to point...could you give me some links?
Second step is to know how can I do for implement this tech?
Third step is to know Is Java Builder the most indicate languaje for this aplication?
Fourth step is - if Java Buider is the indicate tool, What have to know for make the aplication?
Well,,I dont speak english very well but is the best that i can do?
BYE -
How can I send commands and recive rs232 with this Dll
/ programmer commands
INTERFACE char* (WINAPI DYNAMIC KeyCmd)( char const* cmd, char* rsp, int maxrsp);
INTERFACE void (WINAPI DYNAMIC DoCmd)(char const*cmd, char *rsp, int maxrsp);
Note: I see "char*", is this a pointer or a char String. I aspect to get Volt levels to plot a graph.louX2,
char* is the same as LabVIEW's C String Pointer (CStr) data type. I would not worry about the const for the first character strings as this just means they will not be changed in the function.
Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask -
How can I make command line interface (CLI)
Hi All,
How can I make command line interface ( CLI ) In Java using JTextArea or JTextField.
Thanks In advance..
Vikas SahuWe do agree with your assessment and have plans to improve all of these aspects. Unfortunately, it takes a long time and a lot of work to turn "working" software into "simple to use" software, but we are working on it, and it is a high priority for us to make it simpler to use and develop for and administer Coherence.
Peace,
Cameron Purdy | Oracle Coherence -
How can i execute vb scripts in java program
hi
how can i execute any batch files or any other exe files (vb scripts) from java programs
thanksHi,
You use Runtime.exec to execute commands / exe-files. See the documentation (and remember that it will only work on windows):
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html
/Kaj -
How can I execute program after using F4_Filename function?
Hi all,
I'm a new user on the forum. I've been working with ABAP and SAP for a few weeks. I wrote a program for importing data from excel file to SAP using BDC. During searching this forum I found information about F4_Filename function which allows users to browse the disc for a file. I'd like to add this function to my program. I have a parameter for a file name but this is an ordinary static string field. When I added the code which I found in the message on this forum the rest of program doesn't execute.
This is simple program for example:
REPORT Z_TEST8_AB.
DATA f_name TYPE STRING.
PARAMETERS p_file like rlgrap-filename DEFAULT 'c:\test.xls'.
f_name = p_file.
write:/ f_name.
This program works correctly. There is a field for parameter. I can change the default name for a file.
After all, I can run the program (F8) and rest of the code is executed. The field for parameter dissapears from the screen and the file name is displayed. ( command write)
Now I added a function F4_Filename
REPORT Z_TEST8_AB.
DATA f_name TYPE STRING.
PARAMETERS p_file like rlgrap-filename DEFAULT 'c:\test.xls'.
at selection-screen on value-request for p_file.
call function 'F4_FILENAME'
exporting
program_name = syst-repid
dynpro_number = syst-dynnr
field_name = 'p_file'
importing
file_name = p_file.
f_name = p_file.
write:/ f_name.
I can browse a computer for a file now but after selecting the file I can't run the rest of the code. When I click on the icon or press key F8 the field for parameter doesn't dissapier and the command write is not executed.
What do I do wrong?
Could anyone suggest me a solution? How can I executed the code after using this function?
Thanks in advance.
Regards,
Arek.Hi arkadiusz,
1. simple
2.
<b>start-of-selection.</b>
f_name = p_file.
write:/ f_name.
regards,
amit m. -
How can I execute external application?
Hi friends I want printing my barcodes a laser printer (Kyocera) it isn't a barcode printer. So I think (and I look kyocera web page my model doesn't support barcode printing in sap) print my barcodes using an external system. Before SAP we are using JollyPrint application for printing barcodes. It is using an Excel file.
I can create a excel file for this application. I must execute this (JollyPrint-it is a label application) application when I press a button. How can I execute this application?
Thanks
Mehmet
P.S. I have been writing this message with details may be somebody can give me a simple way for thisWell, I can suggest you following steps. May be it works for you .
-Create an external OS command in SM69
-Test OS command in SM49 ( <u><i>about OS command if you search in SDN youll get lot of material</i></u> )
-Create a Script at your OS level, Im assuming you might have some UNIX flavor or Sun solarias.
-Create a Shell script , which execute the printer job from OS .
-Shell script will have parameters . ( e.g. printer name, destination etc )
-set the path of shell script directory in SM69 ( the command you just created )
-Execute shell script using your ABAP program ( use FM "SXPG_COMMAND_EXECUTE" )
In the ABAP program you can pass the parameters and execute the command from ABAP as a result your job will start printing on the required destination. Moreover, you can also capture the spool at OS level .
FYI
For UNIX script, if you search in www.google.com ( UNIX forums) . youll get shell script .
Hope thisll give you idea!!
<b>P.S award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise" -
How can I execute a bash script by double clicking in finder
Hello!
How can I execute a bash script using finder? Or better: How can I create an alias, which executes my bash script?
Thanks JohannAdd the suffix command in your script name. E.g. Script.command.
-
HOW CAN I EXECUTE DINAMIC SENTENCES FROM FORMS
HOW CAN I EXECUTE DYNAMIC SENTENCES FROM FORMS.
Ex.
I would like to execute this commands from table SENTENCES
COL1
set_item_property (item1, enabled , property_true )
set_item_property (item2, enabled , property_true )
set_item_property (item3, enabled , property_false )
Regards
Message was edited by:
jcruizcarrera
Message was edited by:
jcruizcarrera... but you could imagine a sort of workaround...
PROCEDURE Set_Item
PC$Item In Varchar2
,PN$Property In Number
,PC$Value In Varchar2
) IS
BEGIN
Set_Item_Property( PC$Item, PN$Property, PC$Value ) ;
END;That you can call like this:
Set_Item( 'BL.BUTTON', LABEL, 'Hello' ) ;Francois -
How can i execute codedui scripts by using dll
how Can I Execute Coded UI scripts by using the DLL from anywhere after creating the build
Hi yellesh,
If you mean that you want to run your test with bat file, as far as I know, we could call the MSTEST command line.
set mstestPath="C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE"
%mstestpath%\mstest /testcontainer:AutomatedUITest.dll /resultsfile:TestOutput.trx
Reference:
https://social.msdn.microsoft.com/Forums/en-US/29af65b3-598b-4205-80e6-35b942113f3b/how-to-run-coded-ui-scripts-trhu-bat-file?forum=vsautotest
https://social.msdn.microsoft.com/Forums/en-US/42a5d8f2-fe58-4133-b09d-28fa0553ab1a/run-coded-ui-test-in-certain-moment-in-future?forum=vsautotest
Best Regards,
Jack
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How can I execute a Procedure with OUT variable is %ROWTYPE on SQL Prompt
Hi,
I have a procedure with OUT variable is %ROWTYPE
How can I execute the following procedure on SQL prompt.
(without creating anonymous block)
CREATE OR REPLACE PROCEDURE zz_sp_EMP(VEMPNO IN EMP.EMPNO%TYPE,
V_REC IN OUT EMP%ROWTYPE)
AS
BEGIN
SELECT * INTO V_REC FROM EMP WHERE EMPNO = VEMPNO;
END;
Thanks & Regards,
Nareshas previous posters said: it's not possible to do this without declaring a variable in the anonymous block.
With anonymous block it would look like this (had to change it a bit, since i'm using hr-schema on oracle XE):
declare
l_rec EMPLOYEES%ROWTYPE;
begin
zz_sp_EMP(VEMPNO => 100, V_REC => l_rec);
DBMS_OUTPUT.PUT_LINE ( 'first_name = ' || l_rec.first_name );
DBMS_OUTPUT.PUT_LINE ( 'last_name = ' || l_rec.last_name );
end;
first_name = Steven
last_name = King
Maybe you are looking for
-
Color LaserJet Pro MFP M176n installed but not printing
Hello Everyone, I have problem with my printer Color LaserJet Pro MFP M176n. at thebegining i try to install it buteverytime i run the installer it give me HP Installer error, so i installed the Microsoft Net Framework 3.5 and run the install and it
-
How do you close Apps in iOS 7? It doesn't work by double clicking power button.
-
I greatly appreciate any help you can provide in getting the "ThumbsDown" add-on to work on my imac. I am using "thumbsdown-0.22.2-3.xpi" with Firefox 33.0. I would like to go to a site like "http://hqcelebrity.org/thumbnails.php?album=302" where thu
-
Table for Open items of the customer
Hi all , In whch table can the open items of the customer are stored. thanks
-
Vaue Limit Purchase Order Approval
Hi We are currently using the Value Limit Single Step Approval for Shopping Carts successfully. This is followed by 0 step approval for the creation of the PO. We have a scenario whereby we will need to apply this same single step value limit approva