How to execute "cd" comaand from a python script

Hi All,
I want to write a python script where I want to call another Python script which accepts some commandline arguments and is in some other location. I am not u derstanding that how can I execute the "cd" command in my python script to go to that particular location where the other python script exist.
Please guide...
Thanks in Advance.

Moderator Action:
This post was originally in the Oracle Linux forum.
That is NOT for Oracle-on-Linux questions. It is a forum for questions specific to that distro of Linux.
You have a Python question.
The post has been relocated to the Database General forum.
@ O.P.:
Maybe this will help. It was the first result from Google when searching on keywords `oracle python`:
http://www.oracle.com/technetwork/articles/dsl/python-091105.html

Similar Messages

  • How to execute ODI scenario from a web application

    Hi
    I need to execute ODI scenario from ApEx form.
    how to execute ODI scenario from application. Using 10.1.3.5.5
    -app

    In the SQL property of the TQuery object, enter the call as an anonymous block:
    begin
      pkg_name.procedure_name(true);
    end;

  • How to execute a workflow from a webdynpro application???

    hi friends....
    How to execute a workflow from a webdynpro application???
    we are using ep6, ecc5????

    If you want to start a workflow in the backend, you need to call a RFC that starts it.

  • How to execute Linux command from Java app.

    Hi all,
    Could anyone show me how to execute Linux command from Java app. For example, I have the need to execute the "ls" command from my Java app (which is running on the Linux machine), how should I write the codes?
    Thanks a lot,

    You can use "built-in" shell commands, you just need to invoke the shell and tell it to run the command. See the -c switch in the man page for your shell. But, "ls" isn't built-in anyays.
    If you use exec, you will want to set the directory with the dir argument to exec, or add it to the command or cmdarray. See the API for the variants of java.lang.Runtime.exec(). (If you're invoking it repeatedly, you can most likely modify a cmdarray more efficiently than having exec() decompose your command).
    You will also definitely want to save the returned Process and read the output from it (possibly stderr too and get an exit status). See API for java.lang.Process. Here's an example
    java.io.BufferedReader br =
    new java.io.BufferedReader(new java.io.InputStreamReader(
    Runtime.getRuntime().exec ("/sbin/ifconfig ppp0").
    getInputStream()));
    while ((s = br.readLine()) != null) {...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to execute a Scenario from Windows CMD prompt

    Please can you let me know how to execute the Scenario from a Windows CMD prompt? I am not sure if it is any different from "ODIStartScen" command that ODI uses to execute the scenario.
    Appreciate your help.
    Regards
    B

    Hi SH,
    I tried running the scenario from the command line, but the process was not completed and it came back with the below message
    Session : 131774001 finished with return code : 7000
    Do I need to set up any environmental variables or any other setups before I can run the scenario from the command line?
    Appreciate your help.
    Regards
    B

  • How to execute batch file from JSP

    hi frens !
    i wanna know how to execute batch file from my JSP.i am using exec() method to get call the batch file. but its not working ....plz help
    here mine code:-
    File F = new File("C:/var.bat");
         try{
          if (F.exists())
            Runtime rt = Runtime.getRuntime();
            String url=F.getAbsolutePath();
             Process proc = rt.exec(url);
            proc.waitFor();
            proc.destroy();
            catch(Exception IOEx){
           System.out.println(IOEx);
      }Thanks and Regards
    Allwyn

    You might improve your chances of getting help if you do two things:
    1) Explain what "not working" means.
    2) ChangeSystem.out.println(IOEx); to IOEx.printStackTrace(); (in the eventhat is in fact related to "not working").

  • How to execute the job from script ??

    How to execute the job from script ?? i have 2 jobs  A AND B . I want to execute job B  from job A'S Script ?? how can i ??

    Hi Kishore,
    Please refer the below link for BODS Job execution using Script
    Executing a job by another job in BODS 4.1 using simple script
    http://scn.sap.com/community/data-services/blog/2013/12/04/executing-a-job-by-another-job-in-bods-41-using-simple-script
    Steps for executing BODS job from Unix Script with user defined global parameters
    http://scn.sap.com/community/data-services/blog/2013/09/02/steps-for-executing-bods-job-from-unix-script-with-user-defined-global-parameters
    Executing a job using batch file
    http://scn.sap.com/thread/3503338
    How to add a schedule for job2 with a condition after job 1 is finished
    http://scn.sap.com/message/14523514#14523514
    Scheduling BODS Jobs Sequentially and Conditionally
    http://scn.sap.com/docs/DOC-34648
    Thanks,
    Daya

  • How to show a Image (from shell, python or what ever)

    Hi guys
    An Application written in c#/mono takes up to 7 seconds to start. So i was asked to do a little splash screen for it.
    I coul'd not figure out how to do it from shell and i couldn't find the pygtk bindings installed, so i did it quick and dirty in mono showing just an animated gif and killing the process after the applicaiton started.
    The problem with this Solution is that the splash screen itself takes up to 3 seconds to show up, which is quite long.
    Any idea how i could do it from shell or maybe in python or c? Thing is, i can't install any new libraries on that system so it has to be done with the very basic stuff that comes with the xserver.
    Window manager is fvwm. And i would like to stick with the animated gif, since i already have it.
    Lg, Archdove
    display (imagemagic) is probably installed. But how can i deactivate the window decorator? It would also help if i could just set the window title by my self since there is a rule (which i cannot alter or add one more) to do this for special windows.
    Last edited by Archdove (2012-01-25 19:05:38)

    Got it with the -title switch... don't know if it will help me tough
    I just keep updateing here... the tool animate has to be used to animate the gif.
    So what i still need to know is how i can set the exact position of the window to be shown.
    animate -geometry 100%+0+300 -delay 10 -title windowTitle loading14.gif - BÄM!
    Last edited by Archdove (2012-01-25 19:35:56)

  • How to execute a sequence from cvi code ?

    Hello ,
    I'm programing a test software using Labwindows CVI 9.0 and TestStand 4.2 .
    I'm Using CVI GUI and i want for example to press a button that will lanuch a squence from Teststand .
    the SEQ file is already open because i'm launching the GUI from Teststand .
    How can i execute a seq from CVI ?
    Thank you for your help.... Kobi
    Kobi Kalif
    Software Engineer

    Refer to the Example User Interfaces section in Chapter 9, Creating Custom User Interfaces, of the TestStand Reference Manual (p. 9-1):
    Example User Interfaces
    The <TestStand>\UserInterfaces directory includes the executable, project, and source code files for each example user interface. The Full-Featured subdirectory contains user interfaces for loading, viewing, editing, saving, executing, and debugging sequence files. The Simple subdirectory contains similar but limited user interfaces with fewer commands and options but no menus. Also, the simple example user interfaces display the steps for executions you run but do not display steps for sequences you load. Both subdirectories contain source code for LabVIEW, LabWindows/CVI, Microsoft Visual Basic .NET, C#, and C++ (MFC).TestStand installs the source code files for the default user interfaces in the <TestStand>\UserInterfaces and <TestStand Public>\UserInterfaces directories. To modify the installed user interfaces or to create new user interfaces, modify the files in the <TestStand Public>\UserInterfaces directory. You can use the read-only source files for the default user interfaces in the <TestStand>\ UserInterfaces directory as a reference. When you modify installed files, rename the files after you modify them if you want to create a separate custom component. You do not have to rename the files after you modify them if you only want to modify the behavior of an existing component. If you do not rename the files and you use the files in a future version of TestStand, changes National Instruments makes to the component might not be compatible with the modified version of the component. Storing new and customized files in the <TestStand Public> directory ensures that new installations of the same version of TestStand do not overwrite the customizations and ensures that uninstalling TestStand does not remove the files you customize.
    Note: National Instruments recommends that you track the changes you make to the user interface source code files so you can integrate the changes with any enhancements in future versions of the TestStand User Interfaces.
    You might also find the Example Programs topic in the NI TestStand Help useful for other tasks.

  • How to execute  a program  from another

    Hi, expert
    Sorry for this question, but how can I do to execute a program from another with no parameter.
    I will thanks an answer, it's urgent...
    Regardss,
    mgg
    P.D. Points rewarded.

    Simple,  use the SUBMIT statement.
    SUBMIT zreport and return.
    Regards,
    RIch HEilman

  • How to execute a service from a filter in custom component

    I want to execute a service from my filter.
    Then get a resultset from service.
    How do I do it?

    You have to look at Bex book - you will find exactly what you need. You can also could search the forum, i think this was discussed in some threads.

  • How to execute the query from different blocks in Forms

    Hi,
    Curently I have a case where I need to execute the query from some other block. I used
    l_curr_item VARCHAR2(62) := :SYSTEM.CURSOR_ITEM;
    Go_Block ('BLOCK2');
    Execute_Query;
    Go_Item(l_curr_item);
    This works fine , but as I am using Go_Block it does some other activities related to that block, which I dont want them to get executed.
    So can any one please suggest me how I can call the query alone without using the Go_Block .
    Thank you.

    you can set global variable and filter for this variable in the triggers of blocks the actions then you avoid the code of trigger and you can use go_block

  • How to execute exe file from pl/sql

    How to execute an exe file or an operating system command from pl/sql in oracle 9i.

    If it is part of a pl/sql block, use the java suggestion. If you are not in a blck, you can use the "HOST" command. see
    http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a82950/ch2.htm#1001697

  • How To Execute SQL Statements From Shell Scripts?

    I need to extecute some SELECT statements from a shell scripts. Could anybody kindly tell me how to do that, or which document i should refer to ? Thank you very much!

    You can execute SQLPlus with the SQL in a file (sqlplus -s @<sql-script>).

  • How to execute eCATT's from Solution Manager

    Hey Everyone,
    am using solution manager version 3.1,WAS 620.
    and eCATT SAPGUI 640.all my recording are done with SAPGUI recording in Development System.and i execute via TestPlan STWB_2.
    Now,my question is,How to execute all these eCATT scripts from Solution Manager.Do i need to transport the whole repository of eCATT from development system to Solution Manager?.
    I appreciate if you guys pass some comments on this issue.
    Thanks in Advance,
    sarapu

    Do i need to give target system to development system from solution manager?
    can i give the same system data container in solution manager while creating testplan..
    in prior do i need to create a testcatalog STWB_1 in order to create TestPlan?
    please pass your comments,
    Thanks,
    sarapu

Maybe you are looking for

  • Offsetting account showing as * mark pls see the screen shot

    Dear floks pls give me some inputs we need to provide a report to colleagues Tax affairs when it relates to the nature of the recordings on the accounts 3140600010/4150400010 2013. To do this we used the FAGLL03 and with a layout with Offst.acct / Na

  • Oracle Maximum Date Query

    i need assistance in creating a query select a.job_number, a.title, a.request_date, a.completion_date, b.modification_number,b.actual_cost, b.shop_facility_percentage, d.status_date from survey_jobs a left outer join survey_job_bundles b on (a.survey

  • Demand transfer from ECC to SNC using RSMIPROACT Programme

    Hi, Presently we are using RSMIPROACT to transfer demand (Planned independent Requirements-T-code MD61)from ECC to SNC. It transfers the demand always from version 02 and not from the active version 00. I want to know whether there is config to chang

  • Trouble updating Topaz Labs plug-in

    I'm running Topaz Lab's Black and White plug-in under Aperture.  When I get into the plug-in it tells me there is an update available, but when I go to update I get a "Download Failed" error.  Something about "Cannot open /: Path is a directory" erro

  • Problem in Universal worklist configuration

    Hi, I wnt to register sap system. i have Navigated to System Administration  System Configuration  Universal Worklist and Workflow  Universal Worklist - Administration. Click new button and provided the following details: System alias : sapr3 Conn