Running a batch file on ftp server
HI All,
i am trying to use Command line facility of file adapter to run a batch file..
i batch file i have a single command as
mkdir ranjeet.
how should i call this batch file from file adapter..
i tried putting batch file name in the command line section. I had copied the batch file on ftp server at location of Target Directory..but in audit log of adapter i am getting error as OS command cannot be executed..
Ranjeet,
>>ok..but what will command to be run of ftp run..
How do you expect any one of us to know what your ftp server is based on.
The previous reply by Carme has answered your XI query and to the point. You acknowledge it with a <b>ok</b>!! I guess it is too rude on your part.
Anway answering your question, that depends on your FTP server. Log in to your FTP server manally and try executing these commands and check.
Regards,
Jai Shankar
Similar Messages
-
Running a Batch File on another Server with an Oracle Job
hi, i have the following code
BEGIN
DBMS_SCHEDULER.CREATE_JOB (
job_name => 'test_job_bat',
job_type => 'EXECUTABLE',
job_action => '\\10.1.1.63\test\test.bat',
enabled => true,
comments => 'test bat'
END;
So i want to run a batch file, which lies on another pc in the network
The code runs, without a failure.
The bat file just contains "MD D:\bla" .
When i run the code, no bla directory is created, so it seems that the batch file never ran.
i approved read/write on the test folder. (Windows 7 machine)
any ideas?
Edited by: user1067632 on 31.05.2010 05:03
in dba_scheduler_job_run_details the job is listed as FAILED:
ORA-27370: Job-Unterprozess konnte einen Job vom Typ EXECUTABLE nicht starten
ORA-27300: BS-abhängiger Vorgang accessing execution agent mit Status: 2 nicht erfolgreich
ORA-27301: BS-Fehlermeldung: Das System kann die angegebene Datei nicht finden.
ORA-27302: Fehler aufgetreten bei: sjsec 6a
ORA-27303: Zusätzliche Informationen: Das System kann die angegebene Datei nicht finden.
Edited by: user1067632 on 31.05.2010 05:16ok sorry, i made my testjob run, the OracleJobScheduler was not started.
But now i ran into an another Problem.
Now i want to java bla.jar in my batch, and got that new error
ORA-27369: Job vom Typ EXECUTABLE nicht erfolgreich mit Exit-Code: Unzulässige Funktion.
STANDARD_ERROR="Unable to access jarfile start.jar"
anything to consider when accessing .jar files in my batch?
edit:
there was a classpath problem.
Edited by: ginkgo on 01.06.2010 04:29 -
Running a batch file on a web server
hi,
i am facing a problem regarding running a batch file(with a java command in that file) on a web server.
i am having a batch file which is running a chatapplication (this file is having a single line -- "java ChatServer 8080")
i want to execute this command ( file ) on my web server
can u help me plz ( i think u can)
thanx 4 reading my problem...
-ashishthanx 4 replying
but as i am a developer and i am developing the aplication for a client, so should i speak to the client for this or can i do this without interrupting them?
-ashish -
Problems Force Running a batch file
Hi There,
I am trying to force-run a batch file to copy files from a local NBO Appliance to the C:\tmp directory on the user's workstation. The batch file lives at c:\tmp\branding.bat.
I cant get the batch file to force run. Zen reporting advises that the batch file has distributed and launched successfully, however the files do not copy.
However, if i click on the icon for the batch file app - the files copy no problem. I have tried running Workstation Associated and (Unrestricted) User Associated as well as Workstation - Force Run as User.
Path to executable file:
%*WinSysDir%\cmd.exe
Parameters:
/c "c:\tmp\branding.bat"
Any ideas? The batch file has to refer to the P: drive as the application covers 40 different sites each with their own appliance containing source files.
Running NBO2 - ZFD 4 Agent 4.0.1.60 - Clientless
Desktop XP Workstations
Thanks
ThaxHave the app object copy the batch file to the hard drive from the
server and then run it locally. This should work with a Middle Tier server.
thax wrote:
> Hi there,
>
> I cant use the actual server name as this is an application which runs
> through a middle tier server for multiple NBO sites so therefore needs to
> use the P: reference...
>
>>>> kokoo<[email protected]> 9/03/2006 12:37 >>>
>
> TRY edit Scrirts:
> #\\FS_SERVER_name\VOL\BATCH.BAT
>
> edit batch file:
> xcopy "p:\nal\wxp\ZenPolicies\Branding\*.*" "C:\tmp\ZenPolicies\Branding\"
> /s /v /e /y
> ==>
> xcopy p:\nal\wxp\ZenPolicies\Branding\*.* C:\tmp\ZenPolicies\Branding\ /s
> /v /e /y
>
> "thax" <[email protected]>
> *******:[email protected]...
> Hi Jeremy,
>
> xcopy "p:\nal\wxp\ZenPolicies\Branding\*.*" "C:\tmp\ZenPolicies\Branding\"
> /s /v /e /y
> pause
>
> Thax
>
> >>> Jeremy Mlazovsky<[email protected]> 8/12/2005 00:20
>
> Can we see the contents of your batch file?
>
> thax wrote:
> > Hi There,
> >
> > I am trying to force-run a batch file to copy files from a local NBO
> > Appliance to the C:\tmp directory on the user's workstation. The batch
>
> > file lives at c:\tmp\branding.bat.
> >
> > I cant get the batch file to force run. Zen reporting advises that the
>
> > batch file has distributed and launched successfully, however the files
>
> > do not copy.
> >
> > However, if i click on the icon for the batch file app - the files copy
>
> > no problem. I have tried running Workstation Associated and
> > (Unrestricted) User Associated as well as Workstation - Force Run as
> User.
> >
> >
> > Path to executable file:
> >
> > %*WinSysDir%\cmd.exe
> >
> > Parameters:
> >
> > /c "c:\tmp\branding.bat"
> >
> > Any ideas? The batch file has to refer to the P: drive as the
> > application covers 40 different sites each with their own appliance
> > containing source files.
> >
> > Running NBO2 - ZFD 4 Agent 4.0.1.60 - Clientless
> >
> > Desktop XP Workstations
> >
> > Thanks
> >
> > Thax
> >
>
>
Jeremy Mlazovsky
Senior System Engineer - Enterprise Desktop
UDit-Central Hardware Systems & Network Storage
University of Dayton
http://forge.novell.com/modules/xfmod/project/?udimage
http://vmpconfig.sourceforge.net/
http://regeditpe.sourceforge.net -
Running a batch file to invoke reports runtime
Hi,
I'd like to run a batch file at the end of every month automatically, which runs a report and sends the output in a mail. Is there a way to run this batch file without using cron job? We do not have unix environment at our place.
ThanX.hello,
on windows NT you have the AT functionality which is basic scheduling. however if you are using the oracle reports server you can schedule the report inside the server itself.
regards,
the oracle reports team -
Running a batch file placed on a remote terminal????
Hi all,
How can I run a batch file which is located in machine A from machine B.?
which is the best technology to go for?
In RMI I need to have a server program running always to run the batch file, so any other alternative where in on demand invocation of batch file can be done.
A web service is going to invoke this, so plz give me the best way to do this guys..
waiting for ur reply
MithunHow can I run a batch file which is located in
machine A from machine B.?
which is the best technology to go for?JVirus -
Run a batch file from demantra workflow
I am trying to run a batch file from demantra's workflow by creating an executable step.
I am getting the following error.
Error description ’’Invalid command line:’’"D:\Oracle Demantra Spectrum\Collaborator\demantra\sop\populate_staging.bat"
I am giving the following value in command line of executable step.
"#application_root#\sop\populate_staging.bat"
The batch file exists in the appropriate folder.
Following code is in the batch file.
sqlldr userid=msdem/msdem@demsbx control=load_item_hier.ctl
Please help me.
ThanksThis should work for you-
Create a batch file on your current server (ODI) and write in the path to the other batch file on the other server.
//Server2completename/D$/Path/yourbatchfile.bat
From ODI call your batch file that you created on the same machine.. which will inturn call the other batch file on a different machine to execute batch client.
Also can you paste the errors that you may be getting.. need to check if you are getting any specific issue related to this.
Thanks
Denzz -
Unable to run a Batch File Operating System Command
Using XI 3.0, I am unable to run a Batch File Operating System Command After Message Processing.
My Batch file:
gpg -se -r BOA3RSKY --armor --passphrase-fd 0 %1 < C:\Progra~1\GNU\GnuPG\gpgin
My Command Line (ID scenario)
exec "cmd.exe /c C:\Progra~1\GNU\GnuPG\boagpg.bat %F"
If I execute
exec "cmd.exe /c type C:\Progra~1\GNU\GnuPG\boagpg.bat >xis.txt"
It displays the contents of boagpg.bat file in xis.txt.
I just don't understand why when I run the batch file, I would expect an %F.asc encrypted file in the same directory as the %F unencrypted file.
Any ideas?
or will I need Basis to create commands that will allow me to run GPG from XI Command Line?Check this links if its helpful
http://help.sap.com/saphelp_nw04/helpdata/en/bb/c7423347dc488097ab705f7185c88f/frameset.htm
/people/sap.user72/blog/2004/01/30/command-line-help-utility
Check this thread a similar problem
Process Integration (PI) & SOA Middleware
Note 841704 - XI File & JDBC Adapter: Operating system command
http://service.sap.com/sap/support/notes/841704
Try to see the below links
/people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
OS Command on FTP
OS command line script - Need help
FTP - Run OS Command before file processing
Note: reward points if solution found helpfull
Regards
Chandrakanth.k -
How to run a batch file as windows Nt service
Hi friends
I want to know how to run a batch file as windows NT service.
I got some information in the following link
http://support.microsoft.com/kb/q243486/
I tried it but i want to know what we need to include in Autoexnt.bat
And one thing i need Instexnt.exe file. I cannot find tht file.
Please search tht file and send me tht file or else send the link in which this file is present
Please give me reply fast.its very urgent.
Thanks in advance.Hi,
My aim is to run a MS-DOS Batch file, that I created to run a Java Prgram.
I need to call the Batch File from the Oracle Procedure, Also I may need to change the content of the Batch File (Argument to the Java JAR File ).
I can keep the JAR FIle either in the Oracle Server or in the Application Server.
The Java program is to convert XML Format FIle to PDF and MS Word format.
Oracle Version : 10g 2.0.1.0.
Thanks in advance
Rizly -
Hi,
How to run a batch file from Oracle. Is it possible directly from PLSQl, or should I write the java code.
Oracle Version: 10g 2.0.1.0.
Thanks in advance
RizlyHi,
My aim is to run a MS-DOS Batch file, that I created to run a Java Prgram.
I need to call the Batch File from the Oracle Procedure, Also I may need to change the content of the Batch File (Argument to the Java JAR File ).
I can keep the JAR FIle either in the Oracle Server or in the Application Server.
The Java program is to convert XML Format FIle to PDF and MS Word format.
Oracle Version : 10g 2.0.1.0.
Thanks in advance
Rizly -
Hi Experts,
I am trying to implement automatic cache purging every day at specified time and i created txt file with SApurge All cache() and created bat file with nqcmd -q Analyticsweb -u username -p password -s (txt file location).
Now i want to run this bat file daily at specified time with out executing manually may i know how to run the batch file at specified time .
Thanks,There is task type as command in workflow manager if you want you can go for that during the load
nqcmd -d "AnalyticsWeb" -u Administrator -p Administrator -s "D:\PowerCenter8.1.1\server\infa_shared\SrcFiles\1_BIPurgeCache.txt"
Check these urls
http://docs.oracle.com/cd/E12103_01/books/AnySched/AnySched_Scripts3.html
http://deliverbi.blogspot.com/2011/12/purge-all-cache-from-dashboard.html -
Trying to run a batch file in ODI and the file is on a windows network drive.
Hi,
I'm trying to run a batch file that is located on a windows shared drive for the ODI server. When I try to run the file through OS command by giving the file path in the "command line". I get the error "
ODI-1226: Step fails after 1 attempt(s).
ODI-1242: Operating system command execution fails."
Please let me know if this can be done.Hi,
First try to execute your batch file, if it is executing as expected.
Then use OdiOSCommand tool and give full path of script and also give a path to create error file & out file.
Execute the batch now via OdiOSCommand, if it fails then you will receive error message in Error file.
Also check if you have rights to script being executed via ODI.
Thanks,
DK -
How to run a batch file clicking a button?
Hi All,
Can you tell me anyone how to run a batch file clicking a button? And also the progress bar showing the progress.
ArifAs said: write the insert statement like above (of course replace the databaselink, column and table names with your own) in a stored procedure and call this procedure in the WHEN-BUTTON-PRESSED Trigger.
As for the progress bar: how many records are you processing and how is the network connection between your database server? As above method is rather fast it might take just a few seconds and you could spare you the progress bar (this might be a little tricky to implement).
cheers -
Can we run the batch file using simple java application
Hello sir,
we want to run the batch file using simple java application. i tried with some example, we run the exe files but not batch file.
Runtime r = Runtime.getRuntime();
r.exec("D:\\jboss\\bin\\run.bat");
My application is server will run when we run the java appliation.
any suggestion? plz give me the solutionsyes you can run html file
WEB.SHOW_DOCUMENT is a built-in that is used in Forms to call URL from a Web Form. It works much like the similar way that a link on an HTML page works and it takes two arguments, one is URL and second one is TARGET, in your case use following.
WEB.SHOW_DOCUMENT('http://channas.iil.informatics.lk:8890/forms/frmservlet?config=abc.html', '_blank');
Hope this will work for you
Abbas -
No Data in PDF file in FTP server
Hi All,
I am trying to place a PDF file in FTP server.
Used
CONVERT_OTFSPOOLJOB_2_PDF to convert spool to PDF
SCMS_TEXT_TO_XSTRING
FTP_R3_TO_SERVER to transfer data to FTP.
I am able to see PDF file in FTP and no of pages matches with that of R/3 but there is no data in PDF file.To get pdf file , you need to set the itcpo-tdgetotf = 'X' and need to pass in the exporting parameter (options in open_form function module ).Then in close_form function module take all the data of otfdata table into an internal table . Then use SX_OBJECT_CONVERT_OTF_PDF function module to convert it to pdf.
I will show with an example.
tables itcpo.
DATA: ch_otf TYPE STANDARD TABLE OF itcoo.
DATA: w_otf TYPE itcoo.
DATA: w_pdf TYPE solisti1. "For PDF
DATA: i_content_txt TYPE soli_tab.
DATA: temp1 TYPE sx_format VALUE 'OTF',
temp2 TYPE sx_format VALUE 'PDF'.
DATA: c_printer TYPE sx_devtype VALUE 'PRINTER'.
DATA: w_transfer_bin TYPE sx_boolean. "Content
DATA: i_content_bin TYPE solix_tab, "Content
wa_content_bin TYPE solix,
i_objhead TYPE soli_tab.
itcpo-tdnoprint = 'X'.
itcpo-tdpreview = 'X'.
itcpo-tdgetotf = 'X'.
These three parameters need to be passed along with other required parameters
CALL FUNCTION 'OPEN_FORM'
EXPORTING form = xformular
language = ekko-spras
OPTIONS = itcpo
archive_index = toa_dara
archive_params = arc_params
device = xdevice
dialog = xdialog
mail_sender = sender
mail_recipient = recipient
EXCEPTIONS canceled = 01.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT = RESULT
tables
otfdata = ch_otf.
LOOP AT ch_otf INTO w_otf.
CONCATENATE w_otf-tdprintcom w_otf-tdprintpar
INTO w_pdf.
APPEND w_pdf TO i_content_txt.
ENDLOOP.
converting otf file to pdf file
CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
EXPORTING
format_src = temp1 "'OTF'
format_dst = temp2 "'PDF'
devtype = c_printer
CHANGING
transfer_bin = w_transfer_bin
content_txt = i_content_txt
content_bin = i_content_bin
objhead = i_objhead
len = v_len_in
EXCEPTIONS
err_conv_failed = 1
OTHERS = 2.
Then open dataset and transfer to ftp of the content of table content_bin(i_content_bin) as shown in above example.
I think this will be helpful for you
Maybe you are looking for
-
Hi Can any one please suggest me on how to go about xi from a perspective of PHP developer. I have little exposure to Java and worked on XML and XSLT. I have gone through the blogs of Sravya Talanki and understood the basic concepts of xi and those b
-
Display changes after playing game
I have an LG monitor hooked up to my computer. I was wondering why when after playing a game the screen (desktop) goes back to the default of Leopard and not what I had for my background? Thanks
-
How can I recover iCloud contacts in Windows Outlook?
-
My iPod does not synch after updating to 8.1 and asks for more GB's??
I updated to 8.1 and tried synching my music library. It went to step 7 where it was waiting for changes to apply but stalled there. I plugged the iPod again and it then said it needs 15.32 GB's more. I have around 2,200 songs on a 32GB iPod. I've ne
-
Flash player not playing not playing properly low bitrate sound
Hi, I have created a flash audio player which can play streaming audio (mp3) files and it takes data from external xml file. Everthing is working fine. But when i used a low bitrate mp3 file (size 600 kb, time 3min approx) , it plays the audio with m