Can I run perl scripts on a iplanet App Server instead of web server

Hello,
We have some perl scripts running on a iWS 6.0 in DMZ (Tier1) which acess Oracle Server(Tier 3). I want to restrict machines on DMZ access Oracle server directly. Instead I want all the database calls to orignate from iPlanet App server on Tier 2. To make this happen I have to run Perl scripts on App server. Is this feasible as the J2EE iPlanet App can run only C++ or Java.. Any leads helps me lot..
Thanks
Sudhir Nallagangu

According to the J2EE specs you should use EJBs and Servlets in the iAS! Running a perl script for db access sounds like good old cgi times.
But generally it is possible to call a perl script from within iAS. But don't do it!

Similar Messages

  • Run Perl script in JAVA

    Can we run perl scripts in java, still supporting perl API?
    Thanks a lot for help!

    I haven't tried it but I think 6.0 supports some
    scripting.But NOT perl!Sorry, I didn't mean some Perl Scripting. I meant some scripting and I wasn't sure what languages.

  • Can servlets/ jsp automatically run perl scripts and executables?

    I'm a student and am new to to servlets and web programming in general.
    I need to know if it's possible to run perl scripts and executables automatically from servlets/ jsp.
    The program I am planning on creating should have a client outside a firewall that uploads perl files to a gateway machine inside the firewall, the servlet should be able to run this perl file, and then pass the resulting file as an argument to an executable, to be run by another servlet on a different server.
    I've tried looking everwhere for an answer to this and am about to revert to a cgi based approach because I'm not sure if it would work so any help/ suggestions would be much appreciated.

    Hallo,
    I think using java Runtime will help. you can do Processes that execute shell or system commands through
    Process process = Runtime.getRuntime().exec("your perl scripts here!");
    Bye

  • How to run Perl script in Java program?

    Some say that the following statement can run Perl script in Java program:
    Runtime.getRuntime().exec("C:\\runPerl.pl");
    But when I run it, it'll throw IOException:
    java.io.IOException: CreateProcess: C:\runPerl.pl error=193
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Win32Process.java:63)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:566)
    at java.lang.Runtime.exec(Runtime.java:428)
    at java.lang.Runtime.exec(Runtime.java:364)
    at java.lang.Runtime.exec(Runtime.java:326)
    at test.runPerl.main(runPerl.java:16)
    Exception in thread "main"
    Where is the problem? In fact, I do have a Perl script named "runPerl.pl" in my C:/ directory. Could anybody tell me why it can't be run? Thanks in advance.

    Hello sabre,
    First of all thanks for your reply.
    I have tried like what you mentioned.
    Eventhough, i could get the exact error message.
    I could get the Exception
    "Exception:java.lang.IllegalThreadStateException: process hasn't exited"
    <code>
    import java.io.*;
    public class Sample{
    public static void main(String args[]) {
    String s = null;
    Process p;
    try
         p = Runtime.getRuntime().exec("tar -vf sample.tar");
         //p.waitFor();
         if(p.exitValue() == 0)
              System.out.println("CommandSuccessful");
         else
              System.out.println("CommandFailure");
    catch(Exception ex)
         System.out.println("Exception:"+ex.toString());
    </code>
    In this code, i tried to run the "tar command". In this command i have given -vf instead -xvf.
    But it is throwing
    "Error opening message catalog 'Logging.cat': No such file or directory
    Exception:java.lang.IllegalThreadStateException: process hasn't exited
    CommandFailure"
    "Error opening message catalog 'Logging.cat'" what this line means ie,
    I dont know what is Logging.cat could you explain me its urgent.
    Thanks in advance.
    Rgds
    tskarthikeyan

  • Can't open perl script "/opatch.pl": No such file or directory

    After installed Oracle 9.2.04 and applied patch p3006854, p3948480 and p4188455 on Linux AS4, I found that I can not start agent. If I execute "agentctl start", oracle will through our error like:
    Starting Oracle Intelligent Agent.../u01/app/oracle/product/9.2.0/bin/dbsnmpwd: line 156: 1855 Segmentation fault nohup $ORACLE_HOME/bin/dbsnmp $*
    $DBSNMP_WDLOGFILE 2>&1/u01/app/oracle/product/9.2.0/bin/dbsnmpwd: line 156: 1868 Segmentation fault nohup $ORACLE_HOME/bin/dbsnmp $* >>$DBSNMP_WDLOGFILE 2>&1
    /u01/app/oracle/product/9.2.0/bin/dbsnmpwd: line 156: 1880 Segmentation fault nohup $ORACLE_HOME/bin/dbsnmp $* >>$DBSNMP_WDLOGFILE 2>&1
    /u01/app/oracle/product/9.2.0/bin/dbsnmpwd: line 156: 1892 Segmentation fault nohup $ORACLE_HOME/bin/dbsnmp $* >>$DBSNMP_WDLOGFILE 2>&1
    I searched Internet and some article said p3238244 is needed. So I started to install it. At the very beginning, the error is "Can not find ../oui/OraInstall.jar". I found this file in "../oui/jlib" and copy it to "../oui". Then I run "opatch apply" and the error is "Can't open perl script "/opatch.pl": No such file or directory". This time I can not find much similiar information from google.
    Any idea?
    PS: I changed path of inventory during the installation to "/henry/cwdata" ($ORACLE_HOME=/henry/app/oracle/product/9.2). Will this action cause the error below? What is the usage of inventory path exactly?
    Much appreciated!
    Henry

    Below is my env and .bash_profile.
    [oracle@henrylinux lib]$ env
    SSH_AGENT_PID=2814
    HOSTNAME=henrylinux
    SHELL=/bin/bash
    TERM=xterm
    HISTSIZE=1000
    NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
    GTK_RC_FILES=/etc/gtk/gtkrc:/home/oracle/.gtkrc-1.2-gnome2
    WINDOWID=39880874
    OLDPWD=/home/oracle
    ORACLE_OWNER=oracle
    USER=oracle
    LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;0 1:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.b tm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31: *.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:* .bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;3 5:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
    ORACLE_SID=ora92
    GNOME_KEYRING_SOCKET=/tmp/keyring-BckaCh/socket
    ORACLE_BASE=/henry/app/oracle
    SSH_AUTH_SOCK=/tmp/ssh-nsWlKX2762/agent.2762
    KDEDIR=/usr
    SESSION_MANAGER=local/henrylinux:/tmp/.ICE-unix/2762
    GDN_LANG=en_US
    MAIL=/var/spool/mail/oracle
    DESKTOP_SESSION=default
    PATH=/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/oracle/ bin:/henry/app/oracle/product/9.2/bin:/henry/app/oracle/product/9.2/Apache/Apach e/bin:
    INPUTRC=/etc/inputrc
    PWD=/henry/app/oracle/product/9.2/ctx/lib
    THREADS_FLAG=native
    LANG=en_US.UTF-8
    LC=en_US
    ORACLE_TERM=xterm
    GDMSESSION=default
    SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    HOME=/home/oracle
    SHLVL=2
    LD_ASSUME_KERNEL=2.4.19
    GNOME_DESKTOP_SESSION_ID=Default
    LOGNAME=oracle
    LC_CTYPE=zh_CN.GB2312
    CLASSPATH=/henry/app/oracle/product/9.2/JRE:/henry/app/oracle/product/9.2/jlib:/ henry/app/oracle/product/9.2/rdbms/jlib:/henry/app/oracle/product/9.2/network/jl ib
    DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-Z7HVMAC8Dh
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    ORA_NLS33=/henry/app/oracle/product/9.2/ocommon/nls/admin/data
    DISPLAY=:0.0
    ORACLE_HOME=/henry/app/oracle/product/9.2
    G_BROKEN_FILENAMES=1
    COLORTERM=gnome-terminal
    XAUTHORITY=/home/oracle/.Xauthority
    _=/usr/bin/env
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi
    # User specific environment and startup programs
    PATH=$PATH:$HOME/bin
    export ORACLE_BASE=/henry/app/oracle
    export ORACLE_HOME=$ORACLE_BASE/product/9.2
    export PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/Apache/Apache/bin:/sbin
    export ORACLE_OWNER=oracle
    export ORACLE_SID=ora92
    export ORACLE_TERM=xterm
    export LD_ASSUME_KERNEL=2.4.19
    export THREADS_FLAG=native
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
    export NLS_LANG="AMERICAN_AMERICA.ZHS16GBK"
    export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
    export DISPLAY=:0
    export LANG=en_US
    export GDN_LANG=en_US
    export LC=en_US
    export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib
    export LC_CTYPE=zh_CN.GB2312
    export PATH
    unset USERNAME

  • Run Perl script in my Java program

    Some say that the following statement can run Perl script in Java program:
    Runtime.getRuntime().exec("C:\\runPerl.pl");
    But when I run it, it'll throw IOException:
    java.io.IOException: CreateProcess: C:\runPerl.pl error=193
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Win32Process.java:63)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:566)
    at java.lang.Runtime.exec(Runtime.java:428)
    at java.lang.Runtime.exec(Runtime.java:364)
    at java.lang.Runtime.exec(Runtime.java:326)
    at test.runPerl.main(runPerl.java:16)
    Exception in thread "main"
    Where is the problem? In fact, I do have a Perl script named "runPerl.pl" in my C:/ directory. Why can't it be run?

    Please don't crosspost
    http://forum.java.sun.com/thread.jspa?threadID=703918

  • How can i run unix script from my apex page

    how can i run unix script from my apex page and take the output of unix script as a hidden variable and display it on the report region of that page

    I had a requirement to run a Fortran program against some data that woudl be extracted from the database after the user set up their filtering criteria and made some additional input. SInce the program was to complex to conver to PL/SQL, we decided to try and invoke it from Apex. This is how I did it.
    1. I followed the steps in Tim Archer's excellent article "Oracle External Procedure to Run Host Commands" (http://www.timarcher.com/?q=node/9). If the link does nto work, google the article's title.
    Using this steps I created a function which accepts any OS command, including calling my own shell scripts, and runs them. I called my PL/SQL function "shell" instead of "USF_RUN_HOST_CMD " as Tim did in his example (step 9).
    2. In Apex,
    a. I created a button to run my shell command. (I named it P2_RUN_SHELL)
    b. I created a PL/SQL process whose source looks as follows:
    shell('/home/ackness/scripts/cr_xcf_file.sh > /tmp/cr_scfp_file.log');
    and which was conditioned on the the button P2_RUN_SHELL.
    It works like a charm.
    Note: since you can run your own scripts using this method, you can encapsulate a series of commands in a UNIX shell script and invoke that script from Apex. This allows you to be able to test or run you commands from the command line as well as Apex and makes it easier to develop/debug/enhance the scripts in the future.
    Ackness

  • In 4.15 admin server web interface, can account information app be run on web server instead of admin server?

    Hello,
    Running winnt 4.0, messaging 4.x, directory 4.x and admin 4.x. Already moved the netscape gateway to a web server instead of admin server, but also need to move the user mgt application. This is the first link listed when you go to the admin server url in the browser. I have set up <netscape root>/bin/user/admin/bin as cgi directory and set up /bin/user/admin as additional docs directory, but frames in the application just hang.
    Any help would be appreciated. Thanks...

    Hi Peter, Can you define what you mean by the
    "User mgt Application"? Do you mean moving the entire
    Administration Server to a Web Server?
    If that is the case, then I do not believe that this is possible. The Administration Server itself is a proprietary architecture. The DSGW was setup from 4.0 onwards to be able to run on an external Webserver, to improve performance, but I do not believe that the Admin Server itself can be moved over.
    Do you have a lot of people logging in through the Console itself? As you have already moved the DSGW component over to a sepeate sever, I'm trying to understand the need to move the Entire Admin Server over.

  • Can ne one help me in installing STRUTS on Tomcat 4.1 web server

    Can ne one help me in installing STRUTS on Tomcat 4.1 web server.
    I haven't started yet.. Please Help me.
    Thanx in Advance.
    Regards,
    Ashutosh Sharma

    first try to get a file "struts-blank-1.3.8.war" from internet...
    before that we need to get certain jar files from net .. as these wud be necessary for the struts deployment on our tomcat
    antlr-2.7.2.jar
    bsf-2.3.0.jar
    commons-beanutils-1.7.0.jar
    commons-chain-1.1.jar
    commons-digester-1.8.jar
    commons-fileupload-1.1.1.jar
    commons-io-1.1.jar
    commons-logging-1.0.4.jar
    commons-validator-1.3.1.jar
    jstl-1.0.2.jar
    oro-2.0.8.jar
    standard-1.0.2.jar
    struts-core-1.3.8.jar
    struts-el-1.3.8.jar
    struts-extras-1.3.8.jar
    struts-faces-1.3.8.jar
    struts-mailreader-dao-1.3.8.jar
    struts-scripting-1.3.8.jar
    struts-taglib-1.3.8.jar
    struts-tiles-1.3.8.jar
    if u download struts 1.3.8.zip then u'll get all the files + with in the apps folder u'll get the war files that have some
    examples
    eg:-
    struts-blank-1.3.8.war
    struts-cookbook-1.3.8.war
    struts-el-example-1.3.8.war
    struts-examples-1.3.8.war
    and so on..... u mite get these files with some books ....... these war files contain the examples that u can run
    ******************* HOW TO DEPLOY STRUTS ON TOMCAT WEB SERVER ( I am Using apache-tomcat-5.5.25 ) ***********************
    copy all the .jar files that are present in the lib folder of the struts kit to the "\common\lib" folder of
    apache-tomcat-5.5.25
    Note that in Environment Variable CLASSPATH must be specified to lib folder of the tomcat than only these files will work
    Now copy the "struts-blank-1.3.8.war" file from the "apps" directory that will contain many ".war" files to "\webapps" folder
    of tomcat.
    now shutdown and then restart the tomcat webserver, now in the "webapps" folder u can see a folder as "struts-blank-1.3.8"
    now open Internet Explorer or any other Web Browser that ur using and type in
    http://localhost:8080/struts-blank-1.3.8
    if the page is coming showing u a welcome message it means struts are running fine
    Friends this mite be useful for all the beginners.. as i am a beginner so i know the problems that can come to start..
    Regards,
    Ashutosh Sharma

  • App server , process scheduler , web server and DB scripts

    Team,
    Good Morning.
    I am looking for the script which will help me in doing health check-up for app server , process scheduler , web server and DB.
    The script should trigger a email when any one of the domain is down and when it get up.
    Waiting heartly

    If you really only want scripts you should write them yourself. If you don't understand the script how can you be expected to support it, modify it, or add new features? You don't even indicate what OS your using? I could give you a copy of a powershell script but what good is that on a linux box?
    You need to identify what you really are interested in monitoring. Is it process health only? actual system integrity? Do you need to know if a process count goes under a certain threshold? Is the processes scheduler really working? Is queuing occurring somewhere? Is the web server at a critical number of open sessions? log monitoring for keywords? Do you need to actually simulate a web session which would prove the full system is working in one execution, although it won't indicate a failure will occur where some other monitoring might?
    This is why the others have recommended pre-built packages that already offer most of this. If you still want scripts, gather your requirements, think about what you really need, try some stuff on your own, and if you have a specific problem with a script or how to accomplish a particular system check, post a new question, and I'll do my best to help. I think you'll get a better response from everyone if you do that.

  • Running perl scripts off the preinstall script during a pkgadd

    Hello,
    I'm trying to build a custom package (apache2 + mysql + php + other stuff) and get stuck on some stone wall that I can't figure.
    Correct me if I'm wrong in my assumptions, and if able, could you provide a work around ? Here it is :
    - The preinstall script must be in /bin/sh , /bin/bash or any valid shell
    - Must be run by root, 'f course
    Now.. As I'm not that strong on bash/sh scripting, I tried to call a perl script off my preinstall script. Somehow my preinstall script just never call the .pl .
    This leads me to my third assumption :
    - It is impossible, not permissible to run other scripts from the preinstall script.
    Basically the perl script checks for some users in /etc/passwd + /etc/group, checks for some directories, create a custom SMF manifest, etc etc . I pretty much want the .pl script to be run.
    The script itself is well packaged, correctly inserted in the package's pkgmap, and so on.
    Any ideas ?
    Thanks,
    Jeff

    The script itself is well packaged, correctly inserted in the package's pkgmap, and so on.http://docs.sun.com/app/docs/doc/817-0406/ch3enhancepkg-10289?a=view

  • Problem in running Perl script through oracle

    Hi,
    I am facing one problem in perl script.
    " I have one perl script which is interact with sybase database.We have migrated the sybase database to oracle successfully.Now i wanna to change the perl script to interact with oracle database.
    I am using the code like that for interacting the oracle database
    Old Code with sybase database : use DBI::Sybase::GFAS;
    New code with oracle database : Use DBI::oracle::GFAS;
    When i am running the perl script,Its showing the below mentioned error:
    Can't locate DBI/oracle.pm in @INC (@INC contains: C:\oracle\product\10.2.0\db_1
    \perl\5.8.3\lib\MSWin32-x86 C:\oracle\product\10.2.0\db_1\perl\5.8.3\lib/MSWin32
    -x86-multi-thread C:\oracle\product\10.2.0\db_1\perl\5.8.3\lib C:\oracle\product
    \10.2.0\db_1\perl\5.8.3\lib\MSWin32-x86 C:\oracle\product\10.2.0\db_1\perl\site\
    5.8.3 C:\oracle\product\10.2.0\db_1\perl\site\5.8.3\lib/MSWin32-x86-multi-thread
    C:\oracle\product\10.2.0\db_1\perl\site\5.8.3\lib C:\oracle\product\10.2.0\db_1
    \sysman\admin\scripts C:/Perl/lib C:/Perl/site/lib .) at hello.pl line 4.
    BEGIN failed--compilation aborted at hello.pl line 4.
    Anyone have any idea about this error.
    Thx in advance.

    If you look in the oracle home in the perl\site\5.8.3\lib\MSWin32-x86-multi-thread directory you will see two directories. Once is DBI and one is DBD.
    All you need in your perl program is a line 'use DBI'. It will use DBD automatically as and when required. You can specify the necessary connection information when you issue the DBI->connect statement.
    I have successfully managed to connect to Oracle databases and perform DML using the software installed by default. You don't need to download and install anything else.
    I'm no perl expert so maybe some functionality is missing using the interfaces provided by Oracle but for my needs it has sufficed.
    Hope this helps.

  • Run perl script on remote server

    Hello
    I have 2 servers, server 1 and server2.
    I have a perl script on server2 and I want to execute that perl script so my code is like
    $command= { param($p1,$p2) cmd /c test.pl $p1 $p2 }
    Invoke-Command -session $sesion -ScriptBlock $command -ArgumentList 1,2
    session is already created with server2 from server1. 
    perl script kept on server2 spawn another cmd which interacts with server3.
    When I run above code that perl script start executing but it stays in executing step for infinite time..as per observation, I have found that it stucks when it tried to spawn another cmd which interacts with server3 from server2.
    How can I handle this?

    Second hop restriction and some issue in the perl script that prevents it from honoring the error.
    Run script interactively to test results.
    Enter-PsSession $session
    Type your command and see if you see an error.
    \_(ツ)_/

  • Cron running Perl script causes Out Of Memory at 63000kb

    Hi,
    I run a script to record an internet steam at set times using cron (i'm using icecream, a perl script). This runs fine when executed by 'at' or manually form the command line, but when it is started by cron it dies with the error 'Out of memory!'. The machine isn't extremely powerful but is more than capable of doing this simple task!
    From my research I understand that it may have something to do with the /etc/security/limits.conf file, though apparently changing these values often don't have the desired effects.
    The output of 'ulimit -a' is as follows (I can't see any limiting factors here):
    [aratclif@server ~]$ ulimit -a
    core file size (blocks, -c) 0
    data seg size (kbytes, -d) unlimited
    scheduling priority (-e) 20
    file size (blocks, -f) unlimited
    pending signals (-i) 1931
    max locked memory (kbytes, -l) 64
    max memory size (kbytes, -m) unlimited
    open files (-n) 1024
    pipe size (512 bytes, -p) 8
    POSIX message queues (bytes, -q) 819200
    real-time priority (-r) 0
    stack size (kbytes, -s) 8192
    cpu time (seconds, -t) unlimited
    max user processes (-u) 1931
    virtual memory (kbytes, -v) unlimited
    file locks (-x) unlimited
    [aratclif@server ~]$
    and the crond.log output when it died is here (there is nothing else of any relevance in the log - just a load of song names broadcasted by the stream!)
    (aratclif) CMDOUT (
    LED ZEPPELIN - WHOLE LOTTA LOVE [63000 K]Out of memory!)
    The command is started by my user's crontab and so the ulimit displayed by cron is the same as when executed from the command line:
    Apr 10 23:06:01 localhost /USR/SBIN/CROND[1308]: (aratclif) CMD (ulimit -a)
    Apr 10 23:06:01 localhost /USR/SBIN/CROND[1307]: (aratclif) CMDOUT (core file size (blocks, -c) 0)
    Apr 10 23:06:01 localhost /USR/SBIN/CROND[1309]: (CRON) EXEC FAILED (/usr/sbin/sendmail): No such file or directory
    Apr 10 23:06:01 localhost /USR/SBIN/CROND[1307]: (aratclif) CMDOUT (data seg size (kbytes, -d) unlimited)
    Apr 10 23:06:01 localhost /USR/SBIN/CROND[1307]: (aratclif) CMDOUT (scheduling priority (-e) 20)
    Apr 10 23:06:01 localhost /USR/SBIN/CROND[1307]: (aratclif) CMDOUT (file size (blocks, -f) unlimited)
    Apr 10 23:06:01 localhost /USR/SBIN/CROND[1307]: (aratclif) CMDOUT (pending signals (-i) 1931)
    Apr 10 23:06:01 localhost /USR/SBIN/CROND[1307]: (aratclif) CMDOUT (max locked memory (kbytes, -l) 64)
    Apr 10 23:06:01 localhost /USR/SBIN/CROND[1307]: (aratclif) CMDOUT (max memory size (kbytes, -m) unlimited)
    Apr 10 23:06:01 localhost /USR/SBIN/CROND[1307]: (aratclif) CMDOUT (open files (-n) 1024)
    Apr 10 23:06:01 localhost /USR/SBIN/CROND[1307]: (aratclif) CMDOUT (pipe size (512 bytes, -p) 8)
    Apr 10 23:06:01 localhost /USR/SBIN/CROND[1307]: (aratclif) CMDOUT (POSIX message queues (bytes, -q) 819200)
    Apr 10 23:06:01 localhost /USR/SBIN/CROND[1307]: (aratclif) CMDOUT (real-time priority (-r) 0)
    Apr 10 23:06:01 localhost /USR/SBIN/CROND[1307]: (aratclif) CMDOUT (stack size (kbytes, -s) 8192)
    Apr 10 23:06:01 localhost /USR/SBIN/CROND[1307]: (aratclif) CMDOUT (cpu time (seconds, -t) unlimited)
    Apr 10 23:06:01 localhost /USR/SBIN/CROND[1307]: (aratclif) CMDOUT (max user processes (-u) 1931)
    Apr 10 23:06:01 localhost /USR/SBIN/CROND[1307]: (aratclif) CMDOUT (virtual memory (kbytes, -v) unlimited)
    Apr 10 23:06:01 localhost /USR/SBIN/CROND[1307]: (aratclif) CMDOUT (file locks (-x) unlimited)
    Any help would be greatly appreciated!
    Thanks!
    Last edited by ajratcliffe (2012-04-10 23:13:01)

    No, the files are all the same. It seems like just a few are causing the issue, and what's weird, is some of them are cut versions from clips that elsewhere in the timeline render fine.

  • How can I run a script last?

    Hiya,
    I have a single backup job running a single dataset. That single dataset has an include statement to include a dataset directory, which holds individual datasets for the several hosts I want to back up, each with potentially different parameters. This works well, the hosts back up in some order (I don't care), everything's happy.
    However, what I want to do is add a step on the end of this process to run a report on the admin server after all the backups are complete. That is, to run a script once, last.
    If I add an "after backup" command in the dataset, it runs it (as stated in the manual) on the client servers, after every backup, which is no good to me. I've tried creating a separate job and scheduling it at a lower priority a few minutes later than the backup job, but that seems to just run when it feels like it, I presume because there aren't any conflicts so why shouldn't it?
    Can anyone advise how I should be doing this?
    Related question... I've tried putting an "after backup" step on the Catalog backup job, but that appears to get run twice (I presume because there are two "include" steps in the catalog dataset)! Is this expected? How can I get it to just run once, after the catalog backup is complete?
    Thanks,
    David.

    Thanks Donna, but... no. It didn't work.
    We've actually purchased a license for OSB, so I've fired this question at our official support channel now, and they came back with the same answer at the same time (are you the Oracle techie looking at my problem, by any chance?). For the record here's (with some tweaks for readability in this context) what I've sent back in response to that article.
    From the article, I thought perhaps the following might do the trick:
    include dataset /Hosts {
    after backup optional "/usr/local/osb/pre-n-post after-fsd-hosts mail"
    But, from the log:
    2010/11/05.07:26:58 trouble parsing dataset in FSdaily line 1 - open brace appears where not allowed (OB dataset mgr)
    "010/11/05.07:26:58 offending line is "include dataset /Hosts {
    2010/11/05.07:26:58 trouble parsing dataset in FSdaily line 3 - bad nesting (OB dataset mgr)
    "010/11/05.07:26:58 offending line is "}
    So it appears I’m not actually allowed to do that. I don’t understand why that would be.
    The only other idea I have is to include a dummy backup step, backing up something really small (because OSB won’t let you run a backup without backing anything up - sigh!), tack a script onto that, and hope like heck OSB decides that it should run that last. All the documentation I’ve read gives the impression that datasets are all about scope, not order, so I’m not altogether confident that this will work. In any case, it seems a pretty kludgy way of doing it! And, given the next paragraph below, I’m not all that sure it’ll work in any case.
    My idea of scheduling a catalog backup for five minutes later than the client backups, with a lower priority, so that it runs when the client backups finish, also has a flaw - if I use two tape drives in parallel, it runs the catalog job in parallel with the last client job, which is completely useless. I want to put on the end of the tape a backup of the catalog as at just after the client backups, so that in the case of a disaster I can restore that and I’ll be good to restore everything else.
    In addition to being completely useless for the purposes of putting an “after” catalog backup on the end of the tape, it’s also completely useless for the purposes of running a script last - I tried the following:
    include catalog {
    after backup optional "/usr/local/osb/pre-n-post after-catalog mail"
    This ran the pre-n-post script twice, once for each component of the catalog, which is altogether not what I want it to do.
    I can’t think of any way to achieve a catalog backup on the end of the script except for scheduling it for some time later and hoping the dataset backups always finish by then. Ugly.
    The only way I can think to achieve the run-a-script-last is to munge all the datasets together into one humongous dataset file, and do stuff as in the article to try to bend OSB to my will (again, hoping that OSB obeys the order of statements in the dataset). Which, when I’m given the ability to use “include dataset /Hosts” to make it easy to maintain, seems a bit of a mean trick to pull on me. And, again, with two tape drives available I’m not at all sure it’ll work in any case.
    I'll post further results as they come to light...
    David.

Maybe you are looking for