Command line property issue
I am having a problem passing a property value on the command line in a Linux box. Here is a simple version of the script.
java -DmyName="Joe Smith" ShowName
I want "Joe Smith" to be the value of the property myName but myName has "Joe instead. What do I need to do so that myName contains both words?
java -DmyName="Joe Smith" ShowNameYou're doing this on Windows, right? (Thanks (not!) for providing all the necessary information to debug your problem).
The problem is that "CMD.EXE" is dumb about quotes in the middle of an argument. It treats -DmyName="foo bar" as two strings, with explicit strings.
You have to say "-DmyName=Joe Smith".
Similar Messages
-
Financial Reporting - Exporting Batch for Command Line Scheduling Issue
Financial Reporting 11.1.2.2
When I export, a successfully run scheduled batch, for command line scheduling the xml file that is exported only has the following information in it. I think that it is missing alot of information.
Any ideas what I am doing wrong, if anything?
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<JOB_OBJECT OBJECT_ID="0">
<DATA_SOURCE_USER_CREDENTIALS DS_PASSWD="" DS_USER_NAME=""/>
<HR_USER_CREDENTIALS HR_PASSWD="" HR_USER_NAME=""/>
<OUTPUT_OPTIONS>
<HTML VALUE="No"/>
<MHTM VALUE="No"/>
<PDF EXPORT_PDF_FOLDER_LABEL="" VALUE="Yes"/>
<SAVE_AS_SNAPSHOT VALUE="No"/>
<PRINT VALUE="No"/>
</OUTPUT_OPTIONS>
</JOB_OBJECT>Hi again,
I am not sure if you can extract the formatting to Excel... I had also issues.
Can you please try to retrieve the report into Excel via Smartview? Check page 136 of http://docs.oracle.com/cd/E40248_01/epm.1112/smart_view_user.pdf
Regards,
Thanos -
Command-line installation issue : InstallMediaPath parameter?
Hello,
I have an unsuccessful command-line installation of SQL Express 2008 R2. I need to do it to install a new local instance so that a Winforms application could use it (I'm packaging the app thus installing pre-requisites through my installer).
I hit "InstallMediaPath" blank parameter issue, if I look into "C:\Program Files (x86)\Microsoft SQL Server\100\Setup Bootstrap\Log\Detail.txt".
System.ArgumentNullException: Value cannot be null.
2014-09-08 09:40:17 Slp: Parameter name: InstallMediaPath
I read on the forums that this error can solve by uncompressing before running setup, so here are my two commands. I still have the issue.
"Resources\SQLEXPR_x86_ENU.exe" /Q /X:"%TEMP%\SESetup"
"%TEMP%\SESetup\Setup.exe" /ACTION=Install /QS /IAcceptSQLServerLicenseTerms=True /Features=SQL,Tools /InstanceName=MSSQLSAFETIFY /SQLSVCACCOUNT=\"NT AUTHORITY\\NETWORK SERVICE" /AddCurrentUserAsSQLAdmin /SECURITYMODE=SQL /SAPWD="somePassword"
Earlier in log file I see a correct value for InstallMediaPath so am clueless.
2014-09-08 10:00:51 Slp: Setting: SQLSVCACCOUNT
2014-09-08 10:00:51 Slp: Value specified: "NT,AUTHORITY\\NETWORK,SERVICE /AddCurrentUserAsSQLAdmin /SECURITYMODE=SQL /SAPWD=somePasssword /ACTION=RUNRULES /RULES=GlobalRules /WORKFLOW=Install /TIMESTAMP=20140908_100041 /LOGMARKER=_GlobalRules /MEDIASOURCE=C:\Users\bpo\AppData\Local\Temp\2\SESetup\ /INSTALLMEDIAPATH=C:\Users\bpo\AppData\Local\Temp\2\SESetup\x86\setup\ /ENU /MEDIALAYOUT=Core
2014-09-08 10:00:51 Slp: New setting source: CommandLine; previous setting source: Default
2014-09-08 10:00:51 Slp: ----------------------------------------
2014-09-08 10:00:51 Slp: Completed Action: ProcessFeatureCommandLineArguments, returned True
Thank you so much for helping. Do I have some incorrect parameters?I finally found a solution, using a Configuration.ini file. Blog entry dealing with MS SQL unattended setup
I suceeded with a configuration file, adding though two parameters to file, IAcceptSQLServerLicenseTerms="True" and SAPWD="passwordOfMyChoice".
With command line only, I had "path2" parameter null value error, once I added /InstallMediaPath undocumented (?) option to my initial command line switches... -
Greetings,
I scripted in 10.7 the mounting of a Windows share (SMB) for some back end tasks. My script needs to dump collected data over to a Windows share for further processing.
My code seems to have broken since my upgrade to 10.8.
Here is the line of code:
I first create the directory: /Volumes/SHARE
then:
/sbin/mount -o nobrowse -t smbfs //SERVICEACCT:[email protected]/SHAREhttp://winserver.sinc.stonybrook.edu/SHARE /Volumes/SHARE
That worked. But now, I get an authentication error. The problem seems to be that a domain needs to be attached to the name, but nothing works.
I tried:
/sbin/mount -o nobrowse -t smbfs //domain\SERVICEACCT:[email protected]/SHARE /Volumes/SHARE
/sbin/mount -o nobrowse -t smbfs //domain\\SERVICEACCT:[email protected]/SHARE /Volumes/SHARE
/sbin/mount -o nobrowse -t smbfs //domain.mydomain.edu@SERVICEACCT:[email protected]/SHARE /Volumes/SHARE
The last one confuses the heck out of the system. Any ideas?
Thanks,
Andrew
Andrew W. Johnson
Sr Macintosh Systems Administrator
Department of Teaching Learning & Technology
Division of Information Technology
Stony Brook University
Computing Center Room 115
Stony Brook, NY 11794-2400Found the solution to my own problem. Syntax needs to be:
DOMAIN;USERNAME:[email protected]/SHARE -
Ok, I know this is a really stupid question but I have not had the oppurtunity to explore everything in Java yet. I was wondering how I get javac to recognize my program from any directory on my computer. I know it can be done but I need to know how.
add your jdk bin directory to your path in autoexec or boot environment varaible settings.
To run java from anywhere, add . to your classpath environment variable the same way you did for the path. -
Agentry | Windows Command | Action Type | Issue
Hello Experts,
I am trying to open a Windows Application from an Agentry Application.
I am using an Action of type "Windows Command" which will be triggered on a button click in Agentry.
In the action definition I have specified the value to Command Line property in different ways as mentioned below;
1. C:/Path/To/My/App.exe
2. "C:/Path/To/My/App.exe"
3. C:/Path/To/My/App.exe arg1 arg2 (here, arg1 and arg2 are arguments/parameters specific to my App.exe)
4. "C:/Path/To/My/App.exe" arg1 arg2
All of the above mentioned values (one at a time) work for me and I can open the Windows App on click of a button in Agentry App.
The other properties;
"Wait" check box is unchecked.
"Continue Label" is set to OK
"Cancel Label" is set to Not Allowed
But the issue is, I am able to do this in ATE and not in Windows Client or on Windows Device.
ATE Version is Agentry v6.1.0.3
Windows Client Version is Agentry v6.1.3.10200 (SAP WM 6.0)
Also tried it on Windows Client Version Agentry v7.0.3.257 (SAP WM 6.1.0)
Please put in your valuable suggestions.
Thanks,
Dharmaraj Patil
Tags edited by: Michael ApplebyHi Stephen,
Thanks for the reply.
I am using WPF Client for SAP WM 6.0 and also tried it on 6.1.0.
Ultimately, what I want to do is open another Windows App and pass few parameters to it.
Creating/ installing another app which does windows command line will complicate the things and add dependencies.
Whats your opinion?
Regards,
Dharmaraj -
Launching Rescue & Recovery from a Command Line
Question - I would like to know how I can launch Rescue & Recovery from a command line.
Issue that is prompting the question - My laptop was sitting in my computer bag overnight. The battery was fully charged. I BELIEVE that it was in suspend mode at the time. When I opened it in the morning, there was a message on the screen saying that a backup had not completed successfully. I then noticed that the battery had run down completely.
My Plan - I would like to launch Rescue & Recovery (as well as the Defrag utility) from Windows Task Scheduler. If I do, then all schedule tasks will be launched and controlled using the same process. Windows Task Scheduler also provides two key scheduling criteria that the IBM Rescue & Recoverry or the IBM Maintenance Manager utilities do not provide -
#1 - Run this task only when the PC is on AC power.
#2 - Run this task ony when the computer is idle (so that it doesn't slow down the PC if I happen to be working on it)
Background Concerns -
- Having a backup job automatically start when the computer is in my computer bag will run down my battery when I least expect it.
- The PC may could also be damaged due to overheating, since the sides of the computer bag block the ventilation holes.
Additional Info
- If I go to the ThinkVantage Productivity Center and select the Quick Link for "Backup Now" this will indeed launch a backup on demand. I assume that selecting this option is calling a specific executable file.
- However, the only two applicable executable files that I see in the C:\Program Files\Lenovo\Rescue and Recovery directory are "mr_gui.exe" and "wizrr.exe". Both of these files launch an interface that requires the user to make a selection. As a result, it doesn't look as if either of these files would work for unattended operation, unless there is some sort of switch that I can put in that will automatically start the backup process.
- I called the support line (only once so far), but that particular rep did not know of any way to launch Rescue & Recovery other than from the standard R&R user interfaces.
Any help is greatly appreciated,
MathewThe correct way to invoke a JSP is to make a request to the Server.
Normally you would use your browser to do this.
On a unix system, you can use the wget command to invoke a url without using a browser. -
Command line compiler wierdness
Have been compiling RoboHelp 7 HTML Help projects from the command line without issue, but suddenly no glossary text is displayed in the compiled chms. The .glo file is compiled, but the glossary tab is blank.
All required dlls are registered, and surprisingly, if I compile the project in the RoboHelp 7 GUI, the glossary text does show up in the compiled chm.
Using RoboHelp 7.0.3. I've uninstalled and reinstalled, and tried building on a different PC with the same results.
Very odd - anyone else come across this and know how to fix it?Hmmm... Thanks Jeff but I think that goes right back to the realm of a manual process.
Any other thoughts?
Thanks again! -
I am trying to generate my help files through the commanline utitlity via a bat file.
Here is my bat file...
rem Generates the System output files
:START
"c:\Program Files\Adobe\Adobe RoboHelp 8\RoboHTML\RHCL.exe" "c:\Projects\myProj\1.0.0\Development\HelpFiles\MyHelp.xpj" -o
"c:\userName\Desktop\RoboHelpOutput" -g "c:\userName\Desktop\RoboHelpOutput\log.txt"
:END
When I run this, it successfully generates the output files, but it does not generate it in the "c:\userName\Desktop\RoboHelpOutput" directory. Instead, it uses the directory I pointed it at when I generate the output through the RoboHelp UI. I need to figure out why this is ignoring the -o Destination tag in order to be able to work locally and have the help files generated with our automated builds.
Please Help!!!!
Thanks in advance!
hmaprkHi - we are having the same issue. Regardless of what we specify as the output folder, the help file always generates the output on the drive we previously specified in the SSL file.
SSL:
<element name="DestinationProjectName" value="X:\doc_4x\html\apps\output\pr\flexi\fpr32.chm" />
We tried to eleminate the X: to see where the file will generate to. This is the path that showed up on the first wizard screen when I went to generate in RH a few minutes later:
X:\doc_4x\html\apps\projects\pr\doc_4x\html\apps\projects\pr\doc_4x\html\apps\output\pr\fl exi\fpr32.chm
Any help in resolving our command line build issue is greatly appreciated! -
Acroread command line issue nUp and a custom page size
When I use the dialog box with the settings I need - It works fine..
Using acroread 9.5.5 on a Linux box.
Does not work in command line with -toPostScript -nUp 6 4 0 -size=1296x1440 -pairs <file_name>.pdf <out_file_name>.ps
If I choose size=legal or size=tabloid the resulting ps has reduced size pages and does flow correctly but
I want to use Large Paper 18"x20" and not downsize the original PDF input files.
Basically placing the images side by sideWere you ever able to get it to print on large paper? I'm facing a similar issue. A pdf with page size 11x17 but when I run it thru acroread it changes the page size to 8.5x11.
-
Revision: 17010
Revision: 17010
Author: [email protected]
Date: 2010-07-22 02:52:41 -0700 (Thu, 22 Jul 2010)
Log Message:
Bug: Watson #2652870 - use a property file to drive the custom configuration tokens as opposed to setting it in the command line
QA: Yes
Doc: Yes - in custom tokens section, talk about the new token.file option
Checkintests: Pass
Details: Changed TokenReplacer to look for a token.file JVM option. If it's specified (eg. -Dtoken.file=/User/matamel/Desktop/token.properties), then TokenReplacer looks for a properties file where token name and values are specified. This allows someone to specify a file for custom tokens. Custom tokens can still be specified as straight JVM option and in case where a token is defined both as a JVM option and in a token properties file, JVM option takes precedence.
Modified Paths:
blazeds/trunk/modules/common/src/flex/messaging/config/TokenReplacer.javaRemember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them. This may or may not be unique to Arch Arm, so you might try asking on their forums as well.
-
Hey All,
This batch file works:
d:\oracle\BIToolsHome_4\bin\dis51usr.exe /connect userid/password@database /opendb BatchTest /sheet 2010 /batch /export HTML d:\batchtest
but this one does not:
d:\oracle\BIToolsHome_4\bin\dis51usr.exe /connect userid/password@database /opendb "00000 Workbook Analysis Begininng 01 Jan 2009" /sheet ALL /batch /export HTML d:\batchall
The first batch file executes only ONE worksheet and exports the output to a file successfully. The second batch file executes ALL sheets in the workbook but does not produce the output file. Its execution does not produce any error messages but no output is generated. Removing the '/batch /export HTML d:\batchall' commands opens Discoverer Desktop and executes all worksheets successfully.
I guess I am just being a silly goose but I cannot find the problem. Any help towards solving the problem will be appreciated.
Thanks,
JerreHi Jerre
Interesting indeed. The export command, taken from my book, is as follows:
/export <format><export-file-name> This exports the results of executing a worksheet to the file named, in the format specified. If you do not specify a worksheet on the command line, Discoverer exports the results from the active worksheet. If you nominate /sheet ALL on the command line, Discoverer exports all of the worksheets in the workbook and names the output files as <file><sheet-name>.<ext>, identically to the behavior of the Export Data command.
First of all, because you are using the ALL sheets switch the file name has to be unique and cannot be named the same as a folder. Do you happen to have a folder named batchall? That would cause a problem.
Next, I am wondering if there is something with the sheet names that could be causing the issue. Can you take a look at the sheet names and see if there are any characters that might cause an issue? As a test, try renaming the sheets to all one word with underscores.
Best wishes
Michael -
Property to property in command line?
I need to set an already set property at the command line to a new property.
Is it possible to do something iike:
java -Dmy.prop=user.dir MyAppI can't set it up within java code because this property is used before by a 3rd party application.
I've tried
java -Dmy.prop=${user.dir} MyAppbut my.prop gets the value ${user.dir}I need to set an already set property at the command line to a new property.As stated no.
If you are setting the property yourself then you can just pass it in twice.
>
I can't set it up within java code because this
property is used before by a 3rd party application.Why is that a problem?
Until classes are accessed the VM doesn't load them. So as long as you don't access any of those classes before you set a property in code that isn't a problem. -
Tidal Scheduler Command line issue
I am unable to pass command parameters with quotes (I need quotes also to be stored in command parameters). The SACmd.exe is not displaying any quotes when Command parameters are passed. I need quotes because I am calling FTP script in Command and source and destination in command parameters. Example is below:
Command : frppro.exe
Command parameters should be: -s "Shared Path!Source" -d "C:\program files\".
But i am unable to get quotes in command string. Is this a command line issue or let me know is there anyway to get quotes too from command line.Try the "fix" I documented at
http://blog.configmgrftw.com/two-osd-application-install-issues/
Jason | http://blog.configmgrftw.com -
Issue while creating BPEL artifacts using BPEL command line tool
All
I am trying to create BPEL artificats for SQL server stored procedure for SQO Server 2005 using BPEL Command line tool.
My demo.properties is
ProductName=Microsoft SQL Server
DriverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
ConnectionString=jdbc:sqlserver://10.10.20.2:1433;databaseName=dAP
Username:apcdb
Password:password1
SchemaName:dev
ProcedureName:spiSOATesting
ServiceName:SQLServerSPService
DatabaseConnection:MSSQLServer
Destination:c:/temp/sqlprocedure
and I have create a batch file called as generate.bat and it contains following information
java -cp D:\jdevstudio10134\integration\lib\DBAdapter.jar;D:\jdevstudio10134\integration\lib\bpm-infra.jar;D:\jdevstudio10134\integration\lib\orabpel.jar;D:\jdevstudio10134\lib\xmlparserv2.jar;D:\jdevstudio10134\lib\xschema.jar;D:\jdevstudio10134\toplink\jlib\toplink.jar;D:\jdevstudio10134\integration\lib\connector15.jar;D:\temp\sqlprocedure\JDBC\sqljdbc.jar oracle.tip.adapter.db.sp.artifacts.GenerateArtifacts %1
and when I try to run the command at BPEL PM Developer Prompt, I am getting Procedure not found, Can one please tell, what is the cause of this error. and how does this command line tool exactly work.
Following is the output from command prompt.
D:\product\10.1.3.1\OracleAS_1\bpel\samples>D:\temp\sqlprocedure\generate.bat D:\temp\sqlprocedure\demo.properties
D:\product\10.1.3.1\OracleAS_1\bpel\samples>java -cp D:\jdevstudio10134\integration\lib\DBAdapter.jar;D:\jdevstudio10134\integration\lib\bpm-infra.jar
;D:\jdevstudio10134\integration\lib\orabpel.jar;D:\jdevstudio10134\lib\xmlparserv2.jar;D:\jdevstudio10134\lib\xschema.jar;D:\jdevstudio10134\toplink\j
lib\toplink.jar;D:\jdevstudio10134\integration\lib\connector15.jar;D:\temp\sqlprocedure\JDBC\sqljdbc.jar oracle.tip.adapter.db.sp.artifacts.GenerateArtifacts D:\temp\sqlprocedure\demo.properties
Procedure not found: dAP.spiSOATesting
Thank youHI
Pricing will be carried basing on the pricing
procedure.
Case1: Prices will be carried out automatically if
necessary condition records are maintained for the
condition type.
For this you can go to Sales Order-> Item Conditions
In the screen you can click on command button Analysis,
which gives you the list of condition types associated
to the pricing procedure. By clicking on the condition
type you can know the action that has taken place.
Case2: Manually forcing prices for Items.
To do this, you have to populate ORDER_CONDITIONS_IN &
ORDER_CONDITIONS_INX. Also note to identify the item
numbers, you manually pass the item number for each item
in the sales order, use the same item number for
populating conditions.
Parameters required:
ORDER_CONDITIONS_IN:
ITM_NUMBER, COND_TYPE, COND_VALUE, CURRENCY
ORDER_CONDITIONS_INX:
ITM_NUMBER, COND_TYPE, UPDATEFLAG, COND_VALUE,CURRENCY.
Hope the above info helps you. Do revert back if you
need more info.
Kind Regards
Eswar
Maybe you are looking for
-
Iphone won't backup iCloud. Just talked to support and we backed up to iTunes only and restored and still won't backup on iPhone. When I try to reset my "data and settings" on iCloud.com, it gives me an error. Can my iCloud account get totally corrup
-
Time machine backup freezes on initial backup attempt - any ideas?
I just purchased a Seagate 3 TB USB 2.0/3.0 external drive to use as my time machine backup drive. I have a MacBook Pro that was purchased about 3-4 years ago. The MacBook Pro has a 120 GB hard drive and is currently running MAC OSx 10.6.8. I also
-
Hi, My client want to use F110(Automatic outgoing Payment) to payment the vendors. But they want to avail Credit for at least 30 days .that means , those invoice process had been done before 30 days those should come to the APP PROPOSAL FOR THE PARTI
-
Why is the grid not lining up properly?
relevant code: private static final int SCREEN_WIDTH = 640; private static final int SCREEN_HEIGHT = 640; private final int[][] a; private final int width; private final int height; private final int boxSizeX; priva
-
How do I open and save a DVD as movie file?
I have a DVD with video content that I want to eventually get "in" to iMovie for editing. I can open and play with iDVD. I need to save it as a movie file so that I can hopefully import it to iPhoto - and eventually open and edit with iMovie. How do