Execute command in terminal with command?

What in terminal would I have to type to open another terminal with a command? I want to have something that can control my alsa levels in my openbox menu.
Oh and just a side question, what happened to weatherget? Pacman says the package doesn't exist. Is it in the AUR or am I just using the wrong package name?

Thanks that worked.
The python script however doesn't support my weather code ((CXTO)It's out of range).
Anyone know one that does support Canada so I don't have to a bunch of them?
Last edited by cryticfarm (2009-08-07 03:50:39)

Similar Messages

  • Just installed Lion and the Magic TrackPad and I am having a problem with one click commands.  I have to hit the pad fairly hard with one finger to get it to accept the command.  Is this normal, is there another way that I am suppose to execute commands?

    Just installed Lion and the Magic TrackPad and I am having a problem with one click commands.  I have to hit the pad fairly hard with one finger to get it to accept the command.  Is this normal, is there another way that I am suppose to execute commands?

    No you just need to turn on Tap to Click. Go into System Preferences - Trackpad and click the Point to Click tab and select the first box which will say Tap to Click and you should be in business.

  • Problem in using JDBC Execute commands(Update & Delete Only) with af:Table

    HI Everyone,
    I have one issue with Updating and Deleting Row Data using JDBC Execute commands.
    Suppose In My Application i have two pages, in Page 1 I have Two Command Buttons(Delete and Save) and One Input TextBox to write the String to be stored in the Database. and Page 2 where the result Table is shown and table is binded with a ViewObject, Now When User Types some String in InTB and click Save then By Programmatically I'm searching, that string is already present in database or not, if it is already exist then Save button converts in Update button and instead of inserting it allows user to Update the String already exist in database.
    Everything is working fine but the problem comes when i put those all buttons on the same page where result table is present.After putting all things on the same page and When i click save button to insert new String it is Successfully inserting but when any of other action is performed like updating or Deleting the existing one.. then my application just hanged and then nothing I able to do.
    Please Help me to understand this problem and give me the solution for this..
    Thanks
    Fizzz...

    Hi frank,
    Thanks to reply me...
    I'm refreshing table's iterator on each command button's action to reflect the changed result... and i'm sorry i mentioned two pages in my project.. actually these are two forms in the same page..which conditionally changed its renderer properties.. its working fine when only one form is renderred and the otherside when both are rendered then it is not working.
    Hope this change will help you to understand the problem.. if something else you are looking for then please tell me..
    Thanks
    Fizzz...

  • ERROR: executing command  /usr/openv/netbackup/bin/bpbackup

    Hi,
    Online backup in one of our integration systems is failing with the followin reasons                                                                               
    Status = 58 : can't connect to client
    Status = 54 : timed out connecting to client
    The complete work log is
    [843860.00] Backup started 08/29/2007 07:21:27                                                                               
    [843860.00]                                                                               
    [983220.02] Backup started 08/29/2007 07:21:27                                                                               
    [983220.02]                                                                               
    [880690.03] Backup started 08/29/2007 07:21:27                                                                               
    [880690.03]                                                                               
    [1085482.01] Backup started 08/29/2007 07:21:27                                                                               
    [1085482.01]                                                                               
    [843860.00] 07:22:07 Initiating backup                                                                               
    [983220.02] 07:22:02 Initiating backup                                                                               
    [880690.03] 07:22:12 Initiating backup                                                                               
    [983220.02] 07:22:34 INF - Waiting for mount of media id MY0015 on server spnb6master.apac.gdc for writing.                                                                               
    [843860.00] 07:22:49 INF - Processing /oracle/OMI/sapdata1/undo_1/undo.data1                                                                               
    [843860.00] 07:22:49 /                                                                               
    [843860.00] 07:22:49 /oracle/                                                                               
    [843860.00] 07:22:49 /oracle/OMI/                                                                               
    [843860.00] 07:22:49 /oracle/OMI/sapdata1/                                                                               
    [843860.00] 07:22:49 /oracle/OMI/sapdata1/undo_1/                                                                               
    [880690.03] 07:24:35 INF - Processing /oracle/OMI/sapdata3/omi_5/omi.data5                                                                               
    [880690.03] 07:24:35 /                                                                               
    [880690.03] 07:24:35 /oracle/                                                                               
    [880690.03] 07:24:35 /oracle/OMI/                                                                               
    [880690.03] 07:24:35 /oracle/OMI/sapdata3/                                                                               
    [880690.03] 07:24:35 /oracle/OMI/sapdata3/omi_5/                                                                               
    [983220.02] 07:24:55 INF - Beginning backup on server spnb6master.apac.gdc of client ipcby104b1.apac.gdc.                                                                               
    ERROR: executing command  /usr/openv/netbackup/bin/bpbackup -w -t 17  -S spnb6masterb1.apac.gdc -c APAC_SAP_DC1 -s U_xx_1m -L /oracle/GIP/sapbackup/backint/.backint.log.1.1188372087.561352 -k ".bdwaniws.lst561352" -f /oracle/GIP/sapbackup/backint/.backint
    Status = 58 : can't connect to client                                                                               
    [1085482.01] EXIT STATUS 58: can't connect to client                                                                               
    ERR - job (1085482) failed status (58)                                                                               
    [880690.03] 07:25:38 /oracle/OMI/sapdata3/omi_5/omi.data5                                                                               
    [880690.03] 07:25:38 INF - Processing /oracle/OMI/sapdata3/omi640_11/omi640.data11                                                                               
    [880690.03] 07:25:38 /oracle/OMI/sapdata3/omi640_11/                                                                               
    [983220.02] 07:26:25 INF - Server status = 54                                                                               
    [880690.03] 07:26:41 /oracle/OMI/sapdata3/omi640_11/omi640.data11                                                                               
    [880690.03] 07:26:41 INF - Processing /oracle/OMI/sapdata4/omi_6/omi.data6                                                                               
    [880690.03] 07:26:41 /oracle/OMI/sapdata4/                                                                               
    [880690.03] 07:26:41 /oracle/OMI/sapdata4/omi_6/                                                                               
    [880690.03] 07:27:44 /oracle/OMI/sapdata4/omi_6/omi.data6                                                                               
    [880690.03] 07:27:44 INF - Processing /oracle/OMI/sapdata4/omi_9/omi.data9                                                                               
    [880690.03] 07:27:44 /oracle/OMI/sapdata4/omi_9/                                                                               
    ERROR: executing command  /usr/openv/netbackup/bin/bpbackup -w -t 17  -S spnb6masterb1.apac.gdc -c APAC_SAP_DC1 -s U_xx_1m -L /oracle/GIP/sapbackup/backint/.backint.log.2.1188372087.561352 -k ".bdwaniws.lst561352" -f /oracle/GIP/sapbackup/backint/.backint
    Status = 54 : timed out connecting to client                                                                               
    [983220.02] EXIT STATUS 54: timed out connecting to client                                                                               
    ERR - job (983220) failed status (54)                                                                               
    [843860.00] 07:28:28 /oracle/OMI/sapdata1/undo_1/undo.data1                                                                               
    [843860.00] 07:28:28 INF - Processing /oracle/OMI/sapdata1/omi640_4/omi640.data4                                                                               
    [843860.00] 07:28:28 /oracle/OMI/sapdata1/omi640_4/                                                                               
    [880690.03] 07:28:40 /oracle/OMI/sapdata4/omi_9/omi.data9                                                                               
    [880690.03] 07:28:40 INF - Processing /oracle/OMI/sapdata1/omi640_3/omi640.data3                                                                               
    [880690.03] 07:28:40 /oracle/OMI/sapdata1/                                                                               
    [880690.03] 07:28:40 /oracle/OMI/sapdata1/omi640_3/                                                                               
    [843860.00] 07:29:32 /oracle/OMI/sapdata1/omi640_4/omi640.data4                                                                               
    [843860.00] 07:29:32 INF - Processing /oracle/OMI/sapdata2/omi640_10/omi640.data10                                                                               
    [843860.00] 07:29:32 /oracle/OMI/sapdata2/                                                                               
    [843860.00] 07:29:32 /oracle/OMI/sapdata2/omi640_10/                                                                               
    [880690.03] 07:29:47 /oracle/OMI/sapdata1/omi640_3/omi640.data3                                                                               
    [880690.03] 07:29:47 INF - Processing /oracle/OMI/sapdata4/omi640_13/omi640.data13                                                                               
    [880690.03] 07:29:47 /oracle/OMI/sapdata4/                                                                               
    [880690.03] 07:29:47 /oracle/OMI/sapdata4/omi640_13/                                                                               
    [843860.00] 07:31:03 /oracle/OMI/sapdata2/omi640_10/omi640.data10                                                                               
    [843860.00] 07:31:03 INF - Processing /oracle/OMI/sapdata2/omi640_9/omi640.data9                                                                               
    [843860.00] 07:31:03 /oracle/OMI/sapdata2/omi640_9/                                                                               
    [880690.03] 07:31:20 /oracle/OMI/sapdata4/omi640_13/omi640.data13                                                                               
    [880690.03] 07:31:20 INF - Processing /oracle/OMI/sapdata2/omi640_8/omi640.data8                                                                               
    [880690.03] 07:31:20 /oracle/OMI/sapdata2/                                                                               
    [880690.03] 07:31:20 /oracle/OMI/sapdata2/omi640_8/                                                                               
    [843860.00] 07:32:29 /oracle/OMI/sapdata2/omi640_9/omi640.data9                                                                               
    [843860.00] 07:32:29 INF - Processing /oracle/OMI/sapdata4/omi_13/omi.data13                                                                               
    [843860.00] 07:32:29 /oracle/OMI/sapdata4/                                                                               
    [843860.00] 07:32:29 /oracle/OMI/sapdata4/omi_13/                                                                               
    [880690.03] 07:32:44 /oracle/OMI/sapdata2/omi640_8/omi640.data8                                                                               
    [880690.03] 07:32:44 INF - Processing /oracle/OMI/sapdata4/omi640_15/omi640.data15                                                                               
    [880690.03] 07:32:44 /oracle/OMI/sapdata4/                                                                               
    [880690.03] 07:32:44 /oracle/OMI/sapdata4/omi640_15/                                                                               
    [843860.00] 07:33:04 /oracle/OMI/sapdata4/omi_13/omi.data13                                                                               
    [843860.00] 07:33:04 INF - Processing /oracle/OMI/sapdata1/system_1/system.data1                                                                               
    [843860.00] 07:33:04 /oracle/OMI/sapdata1/                                                                               
    [843860.00] 07:33:04 /oracle/OMI/sapdata1/system_1/                                                                               
    [843860.00] 07:33:23 /oracle/OMI/sapdata1/system_1/system.data1                                                                               
    [843860.00] 07:33:23 INF - Client completed sending data for backup                                                                               
    [843860.00]                                                                               
    [880690.03] 07:33:18 /oracle/OMI/sapdata4/omi640_15/omi640.data15                                                                               
    [880690.03] 07:33:18 INF - Processing /oracle/OMI/sapdata4/omi_14/omi.data14                                                                               
    [880690.03] 07:33:18 /oracle/OMI/sapdata4/omi_14/                                                                               
    [880690.03] 07:33:49 /oracle/OMI/sapdata4/omi_14/omi.data14                                                                               
    [880690.03] 07:33:49 INF - Processing /oracle/OMI/sapbackup/cntrlOMI.dbf                                                                               
    [880690.03] 07:33:49 /oracle/OMI/sapbackup/                                                                               
    [880690.03] 07:33:50 /oracle/OMI/sapbackup/cntrlOMI.dbf                                                                               
    [880690.03] 07:33:50 INF - Client completed sending data for backup                                                                               
    [880690.03]                                                                               
    [843860.00] 07:34:47 INF - Server status = 0                                                                               
    [880690.03] 07:34:57 INF - Server status = 0                                                                               
    [880690.03] 07:36:02 INF - Backup by oraomi on client ipcby104b1.apac.gdc using policy APAC_SAP_DC1, sched U_xx_1m: the requested operation was successfully completed.                                                                               
    [880690.03]                                                                               
    [843860.00] 07:36:07 INF - Backup by oraomi on client ipcby104b1.apac.gdc using policy APAC_SAP_DC1, sched U_xx_1m: the requested operation was successfully completed.                                                                               
    [843860.00]                                                                               
    ERROR: wait for process to complete                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi640_12/omi640.data12                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata2/omi640_7/omi640.data7                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata3/omi_1/omi.data1                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata3/omi_2/omi.data2                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata3/omi_3/omi.data3                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata3/omi_4/omi.data4                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata1/system_2/system.data2                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi_10/omi.data10                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi_11/omi.data11                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi_12/omi.data12                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata2/omi640_6/omi640.data6                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata1/system_3/system.data3                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omiusr_1/omiusr.data1                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi_7/omi.data7                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi_8/omi.data8                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi640_14/omi640.data14                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata1/omi640_1/omi640.data1                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata1/omi640_2/omi640.data2                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata1/omi640_5/omi640.data5                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata1/system_1/sysaux01.dbf                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata1/system_1/system.data1                                                                               
    #SAVED.... NS1188352332                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata2/omi640_10/omi640.data10                                                                               
    #SAVED.... NS1188352332                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata4/omi_13/omi.data13                                                                               
    #SAVED.... NS1188352332                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata2/omi640_9/omi640.data9                                                                               
    #SAVED.... NS1188352332                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata1/undo_1/undo.data1                                                                               
    #SAVED.... NS1188352332                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata1/omi640_4/omi640.data4                                                                               
    #SAVED.... NS1188352332                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata2/omi640_8/omi640.data8                                                                               
    #SAVED.... NS1188352337                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata4/omi_6/omi.data6                                                                               
    #SAVED.... NS1188352337                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata4/omi_14/omi.data14                                                                               
    #SAVED.... NS1188352337                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata4/omi_9/omi.data9                                                                               
    #SAVED.... NS1188352337                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapbackup/cntrlOMI.dbf                                                                               
    #SAVED.... NS1188352337                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata4/omi640_13/omi640.data13                                                                               
    #SAVED.... NS1188352337                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata3/omi640_11/omi640.data11                                                                               
    #SAVED.... NS1188352337                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata4/omi640_15/omi640.data15                                                                               
    #SAVED.... NS1188352337                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata1/omi640_3/omi640.data3                                                                               
    #SAVED.... NS1188352337                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata3/omi_5/omi.data5                                                                               
    #SAVED.... NS1188352337                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    BR0279E Return code from 'backint -u OMI -f backup -i /oracle/OMI/sapbackup/.bdwaniws.lst -t file -p /oracle/OMI/102_64/dbs/initOMI.utl -c': 2                                                                               
    BR0232E 16 of 36 files saved by backup utility                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    BR0231E Backup utility call failed                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.54                                                                               
    BR0317I 'Alter database end backup' successful                                                                               
    BR0056I End of database backup: bdwaniws.anf 2007-08-29 07.36.52                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.55                                                                               
    BR0054I BRBACKUP terminated with errors                  
    Thanks,
    deepthi

    While surfing the net i got one solution
    NetBackup patch S0820462 corrects this by ensuring file name uniqueness with a timestamp value included in the name. Obtain this patch by contacting VERITAS Technical Support. Once you have the patch, follow the instructions included in the file patchS0820462.README which accompanies the patch.
    I got the idea but i dont understand where i will get the info regarding the files ??
    and how this patch has to be installed in the system.

  • Chmod to make executable command

    Hey all,
    I've done a quick search, but was getting confused with some answers I found, so forgive me if this is answered elsewhere.
    I'm trying to install and use the todo.sh shell I found (https://github.com/ginatrapani/todo.txt-cli/wiki/User-Documentation). I'm struggling to get Terminal to recognize "todo.sh" as an executable command. I type:
    sh todo.sh
    chmod +x todo.sh
    and I get no errors. But then when I type todo.sh it returns
    -bash: todo.sh: command not found
    I even tried running this in a tcsh, and I get the same result. To be honest, I've never actually been able to get chmod to work for me before, even though I've tried a handful of times.
    Does anyone have any ideas?
    Thanks

    ls -l todo.sh
    -rwxr-xr-x 1 you staff 277 Dec 17 15:21 todo.sh
    The x's above indicate if the file has executable permissions. I'm thinking that chmod did add executable permissions, so most like you do not have the directory containing todo.sh in your PATH environment variable.
    You can continue to use the "sh todo.sh" approach, or you can specify a path to the todo.sh
    ./todo.sh # assumes you are in the directory with todo.sh
    # -OR-
    $HOME/todo.sh # assumes todo.sh is in your home directory
    # -OR-
    /full/path/to/todo.sh
    You could also modify the PATH environment variable and put the directory with todo.sh in your PATH.
    You modify PATH in your .bash_profile (does not exist if you have not created one in the past), or the .profile (bash will choose .bash_profile over .profile, and .profile does not exist unless you created it in the past).
    Modifying PATH would be done something like:
    nano .bash_profile
    and add
    export PATH="$PATH:/full/path/to/the/directory"
    ONLY You know what /full/path/to/the/directory containing todo.sh is.

  • Lom doesn't execute commands

    I'm new in Sun, i just recieved a sun v100 server, i already connected the server to a workstation (using the hyperterminal tool) and it seemmed to be fine... however when the LOM> prompt appears and i try to introduce various commands but it does nothing.
    LOMlite starting up.
    CPU type: H8/3437S, mode 3
    Ram-test: 2048 bytes OK
    Initialising i2c bus: OK
    Searching for EEPROMs: 50(cfg)
    I2c eeprom @50: OK
    i2c bus speed code 01... OK
    Probing for lm80s: none
    Probing for lm75s: 48
    Initialising lm75 @48: OK
    System functions: PSUs fans breakers rails gpio temps host CLI ebus clock
    LOMlite console
    lom>
    LOM event: +0h0m0s LOM booted
    lom>poweron
    (it does nothing...)
    also when i turn the server on with the on/standby switch it also seems to be starting fine, but again when the ok prompt is displayed i try to execute commands and it does again nothing.
    Firmware CORE Sun Microsystems, Inc.
    @(#) core 1.0.18 2002/05/23 18:22
    Software Power ON
    Verifying NVRAM...Done
    Bootmode is 0
    MCR0 = 57b2ce06
    MCR1 = 80008000
    MCR2 = cff0ffff
    MCR3 = b00003ff
    Ecache Size = 512 KB
    Clearing E$ Tags Done
    Clearing I/D TLBs Done
    Probing memory
    Done
    MEMBASE=0xc0000000
    MEMSIZE=0x20000000
    Clearing memory...Done
    Turning ON MMUs Done
    Copy ROM to RAM (154720 bytes) Done
    Orig PC=0x1fff0007edc New PC=0xf0f07f34
    Processor Speed=648MHz
    Looking for Dropin FVM ... found
    Decompressing Client Done
    Transferring control to Client...
    Reset Control: BXIR:0 BPOR:0 SXIR:0 SPOR:1 POR:0
    Probing upa at 1f,0 pci
    Probing upa at 0,0 SUNW,UltraSPARC-IIe (512 Kb)
    Loading Support Packages: kbd-translator
    Loading onboard drivers:
    Probing /pci@1f,0 Device 7 isa dma rtc power SUNW,lomh serial serial
    flashprom
    Probing /pci@1f,0 Device 3 pmu i2c temperature dimm dimm dimm dimm
    i2c-nvram idprom motherboard-fru ppm beep fan-control
    lomp
    Probing Memory Bank #0 512 Megabytes
    Probing Memory Bank #1 512 Megabytes
    Probing Memory Bank #2 512 Megabytes
    Probing Memory Bank #3 512 Megabytes
    Probing /pci@1f,0 Device 7
    Probing /pci@1f,0 Device 3
    Probing /pci@1f,0 Device c ethernet
    Probing /pci@1f,0 Device 5 ethernet
    Probing /pci@1f,0 Device a usb
    Probing /pci@1f,0 Device d ide disk cdrom
    todm5819 Sun Fire V100 (UltraSPARC-IIe 648MHz), No Keyboard
    OpenBoot 4.0, 2048 MB memory installed, Serial #53320536.
    Ethernet address 0:3:ba:2d:9b:58, Host ID: 832d9b58.
    Environment monitoring: disabled
    ok boot
    (again... did nothing)
    i think is a hyperterminal configuration problem but please advide.
    thanks in advance.

    I think I took the wrong path to validate the New Zealand specific tax number. Is it possible to set some rules in PRST1_005 in table T005.
    If this is possible then please pass me the steps description.
    Thanks.
    Naz

  • Execute  commands/statements in txt file supplied to plsql procedure

    Hi,
    I need to execute commands which are in txt file , this txt filepath is supplied to the procedure.
    In the procedure i want to open the txt file and read the commands and run the commands.
    Please help on this .
    Edited by: 904032 on Jun 26, 2012 12:02 AM

    The fact that you are supplying a file path (more correctly known as a directory) is going to be your first problem. Security within Oracle means that access to files on the file server require a directory object to be specified and these directory objects refer to a specific directory on the file server. If you're going to be passing different directories into your procedure then you're going to have to have different directory objects set up for all the possible directories that can be accessed (or issue dynamic DDL to redefine a known directory object each time).
    Once you've done that you can use the UTL_FILE package (http://docs.oracle.com/cd/E11882_01/appdev.112/e25788/u_file.htm#ARPLS70906) to read the contents of the file as lines.
    Then it depends what you mean by "commands" and "statements". Are you referring to operating system commands?... If so you will need to use something like the DBMS_SCHEDULER package to issue a job to run immediately with the appropriate command, as that is able to issue operating system commands, or you are going to have to write some Java code to issue commands for you (plenty of examples if you google). OR, perhaps you are referring to SQL statements? These could possibly be issued using the PL/SQL execute immediate statement, but you will be leaving your database open to SQL injection and major security issues, something that most companies would consider a serious flaw and not want.
    how to read string which is delimited by ';'. or how read each charater in a file ..About time you read the documentation (http://tahiti.oracle.com/). There are functions: SUBSTR and INSTR which can search for things in strings and extract parts of strings, or you can use the more advanced regular expression versions of those REGEXP_SUBSTR and REGEXP_INSTR, or even REGEXP_REPLACE (which is also good for extracting parts of strings).
    If you want a more concise answer, you need to ask a more concise question... {message:id=9360002}

  • Execute Command fron Java Program

    Hi All,
    I am trying to execute a command from Java Application, but iam not getting any result. My problem is:-
    1- Open a terminal.
    2- execute command.
    The same is working fine in windows , the step for windows are:-
    1- execute cmd.exe
    2- go to prompt
    3- execute command.
    How to do it for Solaris 10 ??? Any cmd.exe equivalent for solaris terminal???

    This is done in the exact same way. You open a terminal (depending on your gui its called "console" or "this computer" (CDE), and "Gnome console" (iirc) in the Java desktop) and then you're home free. "javac", "java", etc. should all be in your search path.
    If not look in /usr/java.

  • Unable to execute command adprmkey in upgrading 11i to 12.1.1

    Hello Team Leaders:
    I am in the process of upgrading EBS 11.5.10.2 to Release 12.1.1. I have imported the database, Layed down the apps and have started applying patches. While running adpatch I have encountered:
    java.lang.Exception: ERROR: Unable to execute command: adprmkey /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndlist.jar.tmp
    at oracle.apps.ad.jri.util.JarSignerOptions.getOptions(JarSignerOptions.java:50)
    at oracle.apps.ad.jri.util.JarSignUtils.signJarWithJarsigner(JarSignUtils.java:132)
    at oracle.apps.ad.jri.adjmx.mergeAndExtract(adjmx.java:1313)
    at oracle.apps.ad.jri.adjmx.main(adjmx.java:970)
    Done Analyzing fndlist.jar : Fri Oct 26 2012 16:06:42
    ERROR: The following jars failed to get generated properly.
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndforms.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndewt.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndewtpv.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndaol.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/wfapi.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndaroraclnt.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndmail.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndactiv.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndformsi18n.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/mapclient.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndxmlparserv2.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/cs/jar/cs.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/az/jar/azwizard.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/jtf/jar/jtfgrid.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/cct/jar/cctbasic.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/msd/jar/msejar.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/wps/jar/wpsgantt.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndlist.jar
    I then tried relinking on jar manually:
    cd /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar
    ll fndaroraclnt.jar
    -rw-r--r-- 1 applfint dba 1135766 Apr 1 2009 fndaroraclnt.jar
    adrelink.sh force=y "fndaroraclnt.jar "
    Errors:
    adrelink: error: Product library for product "fndaroraclnt.jar" not found.
    "fndaroraclnt.jar" might not be listed correctly in your OFT1_ofintest.env file,
    you may be missing some files for product "fndaroraclnt.jar",
    or "fndaroraclnt.jar" could be an invalid product.
    adrelink will not try to link product "fndaroraclnt.jar".
    Continuing work on other products...
    adrelink is exiting with status 1
    What is my problem?
    Mathias

    Hi Hussein,
    Following command in (11864081 12.1.3 Java.lang.Exception: Unable To Find Or Read Parameter File /d01/oracle/R12DEV/apps/a [ID 1479911.1]), I have executed:
    adrelink.sh force=y "ad adprmkey"
    And the output errors are:
    /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/libgcc_s.so: undefined reference to `__stack_chk_fail@GLIBC_2.4'
    collect2: ld returned 1 exit status
    make: *** [u02/applfint/apps/apps_st/appl/ad/12.0.0/bin/adprmkey] Error 1
    Done with link of ad executable 'adprmkey' on Sun Oct 28 01:59:50 EDT 2012
    Relink of module "adprmkey" failed.
    See error messages above (also recorded in log file) for possible
    reasons for the failure. Also, please check that the Unix userid
    running adrelink has read, write, and execute permissions
    on the directory /u02/applfint/apps/apps_st/appl/ad/12.0.0/bin,
    and that there is sufficient space remaining on the disk partition
    containing your Oracle Applications installation.
    I checked and do have permissions on /u02/applfint/apps/apps_st/appl/ad/12.0.0/bin:
    drwxr-xr-x 2 applfint dba 4096 Oct 28 02:10 bin
    Browsing around the system I noticed:
    1) three broken links in /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32:
    libgfortran.so -> ../../../../libgfortran.so.3.0.0
    libmudflapth.a -> ../../../i686-redhat-linux/4.4.4/libmudflapth.a
    libmudflap.a -> ../../../i686-redhat-linux/4.4.4/libmudflap.a
    libgomp.so -> ../../../../libgomp.so.1.0.0
    2) Following MOS note 11864081 12.1.3 Java.lang.Exception. Check this out:
    adrelink.sh force=y "ad adprmkey"
    Failed with:
    usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/libgcc_s.so: undefined reference to `__stack_chk_fail@GLIBC_2.4'
    collect2: ld returned 1 exit status
    make: *** [u02/applfint/apps/apps_st/appl/ad/12.0.0/bin/adprmkey] Error 1
    Done with link of ad executable 'adprmkey' on Fri Oct 26 18:14:16 EDT 2012
    Relink of module "adprmkey" failed.
    3) My OS :
    uname -a
    Linux ofintest.corp.phillips.com 2.6.32-100.28.5.el6.x86_64 #1 SMP Wed Feb 2 18:40:23 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
    4) rpm -q glibc
    glibc-2.12-1.80.el6_3.5.x86_64
    glibc-2.12-1.80.el6_3.5.i686
    5) gcc -v
    Using built-in specs.
    Target: x86_64-redhat-linux
    Configured with: ../configure prefix=/usr mandir=/usr/share/man infodir=/usr/share/info with-bugurl=http://bugzilla.redhat.com/bugzilla enable-bootstrap enable-shared enable-threads=posix enable-checking=release with-system-zlib enable-__cxa_atexit disable-libunwind-exceptions enable-gnu-unique-object enable-languages=c,c++,objc,obj-c++,java,fortran,ada enable-java-awt=gtk disable-dssi with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre enable-libgcj-multifile enable-java-maintainer-mode with-ecj-jar=/usr/share/java/eclipse-ecj.jar disable-libjava-multilib with-ppl with-cloog with-tune=generic with-arch_32=i686 --build=x86_64-redhat-linux
    Thread model: posix
    gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC)
    6) g++ --version
    g++ (GCC) 4.4.4 20100726 (Red Hat 4.4.4-13)
    Copyright (C) 2010 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    7) ls -al /usr/bin | grep gcc
    lrwxrwxrwx. 1 root root 3 Oct 17 12:28 cc -> gcc
    -rwxr-xr-x 2 root root 268088 Dec 1 2010 gcc
    -rwxr-xr-x 2 root root 268088 Dec 1 2010 x86_64-redhat-linux-gcc
    8) rpm -qf /usr/bin/x86_64-redhat-linux-gcc
    gcc-4.4.4-13.el6.x86_64
    I hope this information helps in troubleshooting this issue for us.
    Thanks
    Mathias
    Thanks,

  • Could not execute command "getState" for server server01 using nodemanager

    Hi,
    I have built a weblogic 9.1 env with 2 managed servers running on different boxes from the admin server.
    I am having problems in starting the managed servers using the nodemanager. I get the following error message in the Admin server log:
    <Error> <NodeManager> <BEA-300034> <Could not execute command "getState" for server "******" using the node manager. Reason: I/O error while reading domain directory: java.io.FileNotFoundException: Domain directory '/opt/bea/weblogic91/common/nodemanager' invalid (domain salt file not found).>
    I get the following message on the admin console:
    For server ******, the Node Manager associated with machine ******-machine is not reachable.
    All of the servers selected are currently in a state which is incompatible with this operation or are not associated with a running Node Manager. No action will be performed.
    I can start the managed server using the "startMangedWeblogic.sh" without any issues.
    Any help on this would be greatly appreciated.
    Thanks

    one more thing to add:
    I get the following error in the Managed server log:
    <I/O error while reading domain directory: java.io.FileNotFoundException: Domain directory '/opt/bea/weblogic91/common/nodemanager' invalid (domain salt file not found)>
    java.io.FileNotFoundException: Domain directory '/opt/bea/weblogic91/common/nodemanager' invalid (domain salt file not found)
    at weblogic.nodemanager.server.DomainManager.initialize(DomainManager.java:74)
    at weblogic.nodemanager.server.DomainManager.<init>(DomainManager.java:46)
    at weblogic.nodemanager.server.NMServer.getDomainManager(NMServer.java:239)
    at weblogic.nodemanager.server.Handler.handleDomain(Handler.java:170)
    at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:104)
    at weblogic.nodemanager.server.Handler.run(Handler.java:64)
    at java.lang.Thread.run(Thread.java:595)

  • FRM-99999 FAILED TO EXECUTE COMMAND IEXPLORE

    Hi there,
    When I attempt to call the report from my forms (from the browser using IE4), an error message was returned:
    FRM-99999: Failed to execute command.
    Command=iexplore http://<webserver>:89/sdq.pdf
    FULL Details: CreateProcess:iexplore http://<webserver>:89/sdq.pdf error=0
    Few users experienced this problem when using IE4, some do not have this problem.
    For users using Netscape 4.7 and above, so far have not encountered this problem.
    I am using
    Developer 6.0 Patch 7
    OAS 4.0.8.1
    Please help. Thanks.

    My remark regarding "PeymentMethodCode" was but a rant, heartfelt though it be. I mean those gits have left bloody spelling errors in their XML-Schemas -- talk about professionalism, talk about seriousness, talk about something you actually have to PAY for.
    Note also that BOTH spellings are used: the correct one (with an "a"), below the "BPPaymentMethods" element, and the wrong one below the "BusinessPartners" element.
    I don't know why you get that error. As told, the errorcode in the response seems to indicate that the "Object isn't supported".
    If you tried with the default sample provided in the doc, that would be quite unlikely.
    Dunno, really. Maybe you're lacking permissions?

  • Can't execute command - drive didn't come online; check configuration/hardw

    I have a Scalar i500 on a Linux host attached via fiber channel. I have everything working accept automounting the drive. I can't seem to get it working.
    I can use the web interface of the i500 and then put a tape in the drive. I can then mount the drive from Secure Backup and run a back up just fine. Yet, I can't run a backup without a tape mounted. If I choose "Load Volume (Drive).... I get the error "can't execute command - drive didn't come online; check configuration/hardware"
    I can inventory the library and do just about anything except automount the drives. I run a verify and the configuration comes back clean with no errors. I have tried using the SCSI params in the obl0 and obt0 ,and obt2 with no success. I have tried using the raw /dev/sg paths with no success. Same error.
    This is a upgraded installation from 10.1 to 10.3. I have tried doing a clean install with same issue. I have restored the installation and then run a upgrade with the same issue.
    I am stuck. Please help :)
    Thanks

    It appears you may have the DTE's swapped.
    Swap the DTE #'s assigned to the drive device objects and try again. This could happen during an upgrade if you reassigned scsi settings and the obt0 and obt1 devices swapped scsi settings from when they ran things last.

  • Windows Image Deployment - WinPE - Execute Command After Server Image Deployment but Before WinPE Reboot

    Simplified version: Execute command in WinPE after server image deployment but before WinPE reboots.
    I have a custom ISO with a boot.wim and install.wim for deploying Windows Server to our environment. Our environment does not allow DHCP and we have no static IPs available at build time so this will all be done with no internet connection during all phases
    of deployment.
    We have a custom HTA form that generates an XML file based on user input and stores it on the RAMDisk during WinPE. How can we move this XML file from the RAMDisk to the deployed Windows Server image?
    Thanks in advance, Tim

    I believe you should be able to do this during the offlineServicing configuration pass.  You would just need to add into your answer file a command or script to copy from the XML file over to the newly created C:\ drive.  
    I don't have System Image Manager installed on the computer I'm using but if I recall there is a spot during the offlineServicing pass to execute custom commands. You would just add your script path there, the WinPE system drive letter is
    X:\ , and I think the target drive letter Windows is installed to might change depending on how many devices you have hooked up so do a test install and hit SHIFT-F10 , from there you can run diskpart > list volume to see where the new Windows
    install is located. 
    Another alternative could be using a USB drive as your install media, then you can run a script during offlineServicing to copy that XML over to the USB drive.

  • Could not execute command "getVersion" on the node manager

    Hi all,
    I have 2 unix machine:
    A - Admin with BankServer1 and BankWeb1 - work fine
    B - remote machine
    I did pack and unpack , after that in Weblogic I go to Environment > Machines > my_remote_machine(B) > Monitoring Tab
    The error is:
    <Error> <NodeManager> <BEA-300033> <Could not execute command "getVersion" on the node manager. Reason: "Access to domain 'Bank_Unix' for user 'hP76NCZfcy' denied".>

    Hi,
    Did u execut nmEnroll () WLST command successfully from remote box. to Enroll the NodeManager? Or did u see any WARNING/ERROR while doing this?
    Can u please double check if the Step-8 is executed successfully ...mentioned in the below link: http://weblogic-wonders.com/weblogic/2010/04/28/weblogic-clustering-in-remote-boxes/
    Thanks
    Jay SenSharma

  • SB1- Administration- Utilities- Execute Commands (menu path)

    Hi EveryOne,
      I have a question about Execute Commands and internal macro language in SB1.
    I want know how to use this function.
    Many times I send question to SB1 Support Center about Execute commands , but still no answer. 
    I never find any good description this function of SB1.
    Have anyone knowledge about Execute Commands in SB1?.
    Thanks in advance,
    Chris
    ps.
    In SAP Business One help file I find only this text:
    'Use this function to execute automatic procedures based on the defined files. Processes are first defined (in an internal macro language) and can then be executed automatically.
    Please contact your SAP Business One Support Center before you try to use this function.'

    SAP support note 733233 says:
    "The Execute Commands option is an old function which was relevant before the SDK tools were available.
    This function is being use in Israel localization only."
    I would assume that it is only still there to keep compatibility with some old customers who were using it.  I don't think it would be a good idea to try and use it for any new developments.
    John.

Maybe you are looking for

  • Changing monitor identities?

    Normally I only have my monitor connected to my PC (via DVI), but occasionally I like to enable my TV (via DVI->HDMI adapter) as a secondary monitor to watch films or play games. Weird thing is, whenever I connect my TV, Windows likes to think it's a

  • Alert Drill Down - Draft and Added Documents

    Hi, I want to be able to send and alert that allows drill down when the alert includes draft and multiple types of added documents (ie Sales Order, AR Invoice, Purchase Order, AP Invoice etc.) Currently my alert query has UNIONs for the draft table 

  • Re: have two panels, when button is pressed want second panel to show.

    Please help: I working with a very simple applet program. All I want to do is when I click a button a new panel shows up and the earlier one disappers. Like you see when you fill up online forms. I am doing this with JPanels with setvisible true/fals

  • Masks in PSE 4.0

    I am trying to add a cloudy sky to a picture and following the instructions on the Digital Photo CD Layers and Selections. I cannot find however the adjustment layer icon although I can achieve a red overlay with the magic brush selection mask option

  • Youtube/Safari/HTML5 question

    I am using Safari version 5.1.1 on Mac OX 10.7.2.  In YouTube, I am participating in the HTML5 trial. Recently (perhaps as recently as when I upgraded to 5.1.1 and 10.7.2 a few days ago, but I really don't know), the 'Full Screen' button on the lower