Excute Batch command in FORM
How can I call external batch command in FORM?
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by kanekan ([email protected]):
How can I call external batch command in FORM?<HR></BLOCKQUOTE>
G'Day,
Okay, you don't say if you need to do this in the Unix environment or Windows. I guess you mention 'batch' so it must be Windows. Try using the API (DDE.App_Begin(...)) function.
HTH
Regards,
Ivor
null
Similar Messages
-
Running Copy command from Forms 6i
HI!
I want to run Copy command through Forms 6i i.e copy from scott/tiger@orcl insert test@msora(ename) using select to_char(ename) ename from emp;
I can run DDL command through Forms_ddl functions in Forms 6i, But copy command is not working using Forms_ddl.
thanks in advance.
Edited by: Kami_Lily on Aug 2, 2009 10:04 PMDear Kami Lily,
Oracle Forms is able to execute SQL and PL/SQL command only. Additionally it supports Operating System command by HOST built-in.
Though COPY is a SQL*Plus command, it is not possible to execute this command by HOST built-in.
Instead, if you hardly want to execute COPY command oracle forms 6i, then you make a batch file in operating system and run that batch file from HOST built-in.
Thanks. -
hi all
i am using host command in forms 10g. but it is not executing .
is there any distinct syntax or pre-requirement for executing this command
kindly help
thanksi am using the following code create a text file in root directory.
the textfile should contain the list of folders,files present in the root directory.
XCMD:=NULL;
XCMD:='CD\' ;
CLIENT_HOST('CMD /C' || XCMD);
XCMD:='dir >C:foldnm.txt' ;
CLIENT_HOST('CMD /C '|| XCMD);
but the file is creating in the specific users directory. ie.
\ documents and settings\username\desktop
kindly help -
Shell script for batch compilation of forms 10g on AIX 5.3L AS
Hi All,
Can anybody provide me the Shell script for batch compilation of forms 10g and reports 10g on AIX 5.3L AS?
Regards,
SAMHi Alex,
I tried with the below script as well as the one you had posted.
ORACLE_HOME=/opt/oracle/OraHome_3
export ORACLE_HOME
TNS_ADMIN=$ORACLE_HOME/network/admin
export TNS_ADMIN
LIBPATH=$ORACLE_HOME/lib32:$ORACLE_HOME/jdk/jre/bin:$ORACLE_HOME/jdk/jre/bin/cla
ssic:$LIBPATH
export LIBPATH
cd ../forms
for i in `ls *.pll`
do
echo Compiling Library $i ....
$ORACLE_HOME/bin/frmcmp module=$i userid=mydbuser/mydbuser@mydb
batch=yes module_type=library
compile_all=yes window_state=minimize
done
export ORACLE_HOME=/opt/oracle/OraHome_3
export ORACLE_TERM=vt220
export LD_LIBRARY_PATH=/opt/oracle/OraHome_3/lib:/opt/oracle/OraHome_3/jdk/jre/l
ib:/opt/oracle/OraHome_3/jdk/jre/lib/i386:
cd ../forms
for i in `ls *.pll`
do
echo "Compiling Library $i ...."
/opt/oracle/OraHome_3/bin/frmcmp module_type=form userid=mydbuser/mydbuser@mydb
module=$i batch=yes compile_all=no
window_state=minimize upgrade=no
done
echo "PLL Compilation done"
But there was a same kind of error thst turning up all the time.
Compiling Library Agf.pll ....
Forms 10.1 (Form Compiler) Version 10.1.2.0.2 (Production)
Forms 10.1 (Form Compiler): Release - Production
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
PL/SQL Version 10.1.0.4.2 (Production)
Oracle Procedure Builder V10.1.2.0.2 - Production
Oracle Virtual Graphics System Version 10.1.2.0.0 (Production)
Oracle Multimedia Version 10.1.2.0.2 (Production)
Oracle Tools Integration Version 10.1.2.0.2 (Production)
Oracle Tools Common Area Version 10.1.2.0.2
Oracle CORE 10.1.0.4.0 Production
FRM-10043: Cannot open file.
Form not created
I hence updated the permissions on the pll as below
-rwxrwxrwx 1 oracle oinstall 335872 May 19 16:31 Agf.pll
But the problem is still persisting.
My environment details are as below.
I am working on Win XP machine. Connected to my AS via telnet and xmanager. I have set my DISPLAY to my local IP.
Is there any thing more that I need to do? If so then let me know.
Regards,
SAM -
Till yesterday the batch command in file adapter working fine, from today none of the batch commands in file adapter are not working. Please suggest the solution?
I have a requirment where i have to raise PI alerts when proxy exceptions getting triggered.
I came to know , we have to call function module 'SALRT_CREATE_API' in the proxy.
Can any one let me know the step by step configuration as iam already reffering to
http://help.sap.com/saphelp_nw04/helpdata/en/d0/5e073c8e56f658e10000000a114084/content.htm
Any pdf would be appreciated? -
Hi All,
My scenario is SAP to XI to Batch Command.
The receiver system is a listening port system where it receives data at the port. Currently XI is not the middleware. So the communication happens through EXE. It happens as follows:
1. exe sends a wake up call to Batch Command.
2. Command Batch sends an acknowledgement to exe that it is ready to receive data
3. Now exe sends data to CB.
4. CB sends Ack for data
5. exe sends a sleep call to CB to close connection
6. Cb sends Ack back to exe.
Now exe has to be replaced with XI , so is this set of Communication possible through XI in the same scenario? If yes , then How.
If no what can be the solution.
Also will the Standard adapters in XI serve the purpose for Command Batch since it is not any File system , but it receives data at the port or will Custom adapter will have to be developed for this purpose.
Please help.
Thanks & Regards,
Loveena.That sounds like a proprietary TCP/IP handshake.
There is no way besides own development of Java code.
You could develop an adapter or a Java proxy for this purpose.
The better option is, replcing the batch command with an HTTP or Webservice enabled program and use standard PI functionality. -
Hi,
I am getting followin error
org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 5 column 19: Document is invalid: no grammar found.
org.xml.sax.SAXParseException: Document is invalid: no grammar found.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1567)
at org.apache.catalina.startup.ContextConfig.tldScanStream(ContextConfig.java:977)
at org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.java:1006)
at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3582)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:788)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
[Microsoft][SQLServer 2000 Driver for JDBC]Statements that produce result sets are not allowed in batch commands.
[Microsoft][SQLServer 2000 Driver for JDBC]Statements that produce result sets are not allowed in batch commands.
For input string: "sdfc"
I am using the Tomcat version 4.0 and my xml file has correctly <!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
And the application correctly identifed the servlet and throwing this error from the servlet. Can anybody help in this regard.I don't think so. I believe your server.xml or your web.xml file is malformed. This means that the DTD that the container validates the file against is not in agreement with the XML you created. See if you can start commenting out elements in your web.xml until the server starts properly to zero in on the problem. Or, if you are comfortable reading DTD's, go straight there to find out the problem.
- Saish -
Hello All
I've set-up an action to resize a folder of photos. Recorded the action, all is good. I go to AUTOMATE > BATCH and go through the set-ups, etc., but when I activate the run, I keep getting this warning dialog:
"Could not complete the Batch command because the disk is not available".
At first I thought it may be looking for the SD card the photos were copied from, but that's not the case as I have imported all the photos and they now reside on the HD. I've tried restarting Photoshop and even restarting the system - both to no avail.
Any idea as to what this dialog is referring to?
Running :
Photoshop CC
27" Late 2013 iMac
3.5 GHz Intel i7
16 GB RAM
NVIDIA GeForce GTX 780 Graphics
OSX 10.9.1
Any help would be MOST appreciated!!
KeithIf all your doing is resizing image to fit within some size you don't even need an action unless you replacing the original files which is not a good idea in any case. For if something goes wrong you could wind up loose everything.
Use menu File Scripts>Image Processor. In the Image Processor Dialog point to the source folder set the output locarion set image file types yoo want to save and the size and option. You can even include actions.
There is also Image Processor Pro a free download which is a more powerful script. -
We are using Sony MBPS and it has to be rebooted every month. We have automated much of it using batch files but we would like to further automate it. Is there a batch command to trigger an automatic login of the servers?
Automatic logon can be configured through registry:
http://support.microsoft.com/kb/315231/en-us
The article mentions Windows XP, but it is valid for all later versions of Windows. This is how we do it. We deploy the registry keys through group policy to the machines that need automatic login. -
Suddenly, when I use the batch command, CS5 freezes up and has to be closed using alt-ctrl-delete. I've been using the command for a long time with no problems. All the other commands under the "Automate" line work. I reinstalled CS5, and it appeared to fix the problem. However, when I scanned a BUNCH of photos, and went to use the command, it froze again. Any ideas?
Ok since I got some free time, I updated to 12.0.4 again, with reallocating the temp path.
The freezing bug is still there, and it's still creating those .mvm file(1-14 inside the C:Temp. and 15 at the root of E). Since http://forums.adobe.com/thread/747353 is still discussing this issue, I'll leave it for a while.
With the update, my selection issue is also remaining there, I'd like to talk about it, since it's not only happnening to selection or magic tool, but to any tools involving moving cursor.
http://www.photoshopgurus.com/forum/photoshop-troubleshooting/29186-photoshop-cs4-cs5-acti ng-like-they-possessed.html
http://digitalweddingchat.com/showthread.php/14289-weird-mouse-problem-in-PS..-posessed-mo use!
I'll save myself the trouble of describing since the above posts have done it really well. And their fixes do not apply to me.
What I could add to this:
1) Regarding the selection tool, this issue mostly happens after I move my cursor, and once it's "activated", I could just click like hell without moving my mouse at all, while creating a crazy record of below( simply caused by clicking mouse, which
"moving marquee>cancel selection>moving marquee>cancel selection>moving marquee>cancel selection>moving marquee>cancel selection>moving marquee>cancel selection>moving marquee>cancel selection>moving marquee>cancel selection>moving marquee>cancel selection>moving marquee>cancel selection>moving marquee>cancel selection>".
But if I simply open PS, and start clicking on the picture with selection tool, keeping my mouse from moving in the first place, then usually I can't duplicate this issue.
2) Also, the issue will also occur if I move my mouse and click, but we could get some hint if we duplicate it this way.The unintended selection caused by this issue, which we take rectangular selection for example, will have a corner at the place where I ever put my cursor at. So from my point of view, it's like photoshop is ignoring my action, which is releasing the left button. For PS, I first move my mouse to point A, pushing left button down, (igored)releasing left button(ignored), moving mouse to point B,and a new unintended selection! Though this pattern only occurs sometimes of the issue, but it might hold some word.
3) As I keep testing, the easiest way to duplicate the issue is to move my mouse for a long distance and click, opposed to rapid small displacement and click.Well not that useful.
4) The way I deal with it now, is to endure it. I keep reselecting and usually the issue will disappear for a while, and come back at unknown future. I tried changing my mouse/graphic card/memory, as well as their drivers, ended up no fixing.
Any idea on this, Noel?
-Monkey -
Batch command to find java version
Hi
I need to get the version of java runtime env on a machine using command prompt (more specifically in a batch file). java -version at command prompt gives me the version and other stuff. But has anyone written a batch file that extracts values like 1.3.1 or 1.4.0 by executing a batch command??
Any suggestions woul dbe helpful
Thanks
VPHere's my thoughtsjava -version 2>tmp.txt //pipe version to file
find "java version" tmp.txt|find "java version">tmp2.txt //just get info
del tmp.txt
for /f %i in (tmp2.txt) do @set version=%i // set a variable
del tmp2.txt
set version=%version:~10,5% // you get offsets
@echo %version%You will need to debug this.
P.S. IS this Java Programming? -
Suddenly when I select multiple images in Bridge, then go to Tools>Photoshop>Batch, I get the message "The command "Batch" is currently unavailable." Batch is also greyed out in Automate. This occurs when no other processes are happening. What could it be? Batch command has always worked fine in the past.
So File > Automate > Batch in Photshop is greyed out?
And would you mind providing the relevant information about your set-up (Photoshop-version, OS etc.)?
Boilerplate-text:
Are Photoshop and OS fully updated and have you performed the usual trouble-shooting routines (trashing prefs by pressing command-alt-shift/ctrl-alt-shift while starting Photoshop until the appropriate dialog appears after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences you’ve changed, 3rd party plug-ins deactivation, system maintenance, cleaning caches, font validation, etc.) -
Batch command for using Java in IE
Hello,
I'm looking for a batch command that sets IE to use Java (Sun).
It should do the same job as if manually checking the check box of 'Use <java version> for applet' in advanced internet options of IE.
Is there a way to do it?Sorry, currently there's no batch command to set IE to use Java from Sun.
There're quite a few registry keys need to be set when that option is selected.
Registry settings for:
- turning off console for MSVM;
- hooking up Sun's Java console to IE;
- adding a "TreatAs" to the Web Browser Applet Control so that applets with applet tag will use Sun's Java;
etc. -
What happened to Batch command in Photos
Batch command is gone in photos. In iphoto I was able to to change Title, Description, or Keywords for all selected photos under the edit window.
I found many of the other features that Apple has deleted with the release of Photos including Batch to be useful.
Since Apple has taken their stand to dumb down their photographic app, I am now going to look elsewhere for a non-Apple product that better satisfies my needs then the toy they are offering.
Maybe if I go with a vendor who is only do photographic software there might be less chance for them to go the same route as Apple. -
Unable to excute unix command from java program
import java.io.File; // is java code
public class RunSystemCommand {
public static void main(String args[]) {
String s = null;
// system command to run
String cmd = "ls ";
// set the working directory for the OS command processor
File workDir = new File("c:/cygwin/cygwin");
Process p = Runtime.getRuntime().exec(cmd, null, workDir);
p.waitFor();
I am tryiing to excute above code to run unix command on cygwin but gave folllowing error...... but works well to open a note pad..
Exception in thread "main" java.io.IOException: CreateProcess: C:/cygwin/bin err
or=5
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Unknown Source)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at d.main(d.java:19)
It seems using this functionone cannot excute unix commands..please help to do so..Are you sure you want cygwin/cygwin?
the following works fine for me, you may need change the workDir to your bin folder
import java.io.File; // is java code
import java.io.InputStream;
public class RunSystemCommand {
public static void main(String args[]) throws Throwable {
String s = null;
// system command to run
String cmd = "ls ";
// set the working directory for the OS command processor
File workDir = new File("c:/cygwin/bin");
Process p = Runtime.getRuntime().exec(cmd, null, workDir);
InputStream pis = p.getInputStream();
while( pis.read() != -1 ); // added, as otherwise the ls hangs.
p.waitFor();
}
Maybe you are looking for
-
"Disk cannot be read from or written to" When syncing CERTAIN songs to iPod
So I bought my friend's iPod Touch. I've talked to her about this issue and she's never experienced anything of the sort. When I got her iPod Touch I downloaded the newest software (3.1.2). It's still currently running on 3.1.2 (as I know of no way t
-
Can you open a seperate photo page?
Hi all, I recently ran across a website where the images were able to open in a seperate page as well as the usual photo gallery and slideshow. Does anyone have any insight as to how this is done? This is a link to that website http://www.francoiskal
-
Muse uploading EVERY file, even though it's only supposed to upload changed files
When I publish my site, I make sure that I specify that ONLY files/pages that have been changed are to be uploaded. Ever since the last "upgrade", Muse is uploading EVERY file, whether it's been changed or not. Also, the upload speed it slllllllllloo
-
GRPO cosed without any Goods return or A/P invoice entered
I raise a GRPO and incoming excise invoice. I don't know if we did something but now GRPO status is closed without A/P invoice entered. I also did not enter a Goods return document. How do I know why the status is showing as closed?? And how do i ent
-
Problem selecting and deselecting photos
My mind is confused. Last night I was carefully selecting photos from about 900 in the browse view. I held down the command key continually and then left clicked one image I wanted after another. Sometimes after chosing 45 images, sometimes after