Program execution hangs every call to "SQLBEX".

I would like to know if there any solution for this:
Environment: Solaris / Cobol (Server Express v4) / Oracle v9i / procobol (32 bits);
Project: Migrate an old application to new releases;
Description: We are using a new software that only works 32 bits, the 64 bits will be ready for use at Dec/2004.
So everything should be in 32 bits.
Every program is precompiled and when we try to execute it the program hangs.
Following execution (debug) we saw that it hangs on every call to "SQLBEX".
Before the call there are always call's to "SQLADR" without any kind of problem
Solution: ?
Anyone can help?
Thanks in advance
Joao Prat

I dont understand what the first line is supposed to do, and I can't see any connection with JNI or Java whatsoever.

Similar Messages

  • Labview Program will hang between 33% and 50% of the time.

    I have a problem with a Labview program I made. I have two programs that do the same thing. One is in flat sequence form and the other is in state machine form.
    As explained in the link below, I would like to make use of a microcontroller to make wiring connections for automating a measurement process. A separate current source and volt meter will be used.
    https://forums.ni.com/t5/LabVIEW/Sequence-a-good-idea/td-p/2601333
    I have since made some simple test programs which I have attached. The problem is when executing, the labview program will hang, but not every time the program is execute.
    For example: Hall 1.2.vi will work properly twice with the third time it is executed it will hang. If you abort and try again, it will again run twice with no problems with the third hanging. This one is in flat sequence format (was in a flat sequence, but merged the windows because I thought that was the cause). From what I can tell, the program will hang when calling Keithley 6517 Single Read.vi. Both connected Keithley devices are connected to the computer via GPIB at 16 and 27. The way I verified if it was this vi causing it or contributing to it was that I removed it and the program never hung. I find it very strange that it will hang exactly on the third attempt every time.
    Hall 1.3 simple.vi will work the first time and hang the second time. So it works 50% of the time. This one is in State Machine format. This one will hang at the case titled "Measure 1" which contains the Keithley 6517 Single Read.vi.
    I've used the highlight execution button and watched the program run. Oddly, it doesn't hang when using this button. So I tried adding delays/wait in different places to no avail.
    What could be causing this? As a side note, I say the program hangs for two reason. The main one is the program doesn't finish running so the run arrow is still black. The second thing is that if you notice at the end of the labview program, I have a block there that turns the current source off which doesn't happen when it hangs. I have to manually turn it off and then hit the abort program button to stop labview.
    Solved!
    Go to Solution.
    Attachments:
    Hall 1.2.vi ‏42 KB
    Hall 1.3 simple.vi ‏81 KB

    altenbach wrote:
    SaintsFan wrote:
    Also, I've tried placing wait/delays at various places with no improvement of the problem. My next thought is to just remove all the vi calls and have everything in one program.
    How did you place the waits?
    Why would placing everything in one program fix the problem. That makes no sense! What is your reasoning?
    In the case of hall1.3, I placed a wait in the Measurement cases and CS On cases and there was no affect. In the hall 1.2 when the blocks were broken up similar to the state machine cases where each sequence window was identical to the cases, I placed a wait or delay in each window with no effect on the hanging.
    My reasoning for placing everything in one program is the same as my reasoning for figuring delays would help, since the time of execution would be altered. If the execution time is faster and if the timing is the problem then I figured that the problem would happen more frequently or even every time.
    Somehow I get the feeling this is not the case. The reason being the interval in which it succeeds or hangs is constant. I believe somewhere, a value is getting set. The 6517 Read vi runs fine if I run this vi by itself no matter how many or how fast I run it. Also, the same goes for both 1.2 and 1.3 if I remove the 6517 read vi they run fine no matter how fast or how many times I run them. 
    Somehow after the current source is set to operate and triggers labview will hang on a set interval when calling 6517 read vi.
    Separately they work, together there is a problem. I tried placing a delay between these two by connecting the error out of the trigger vi to the error in of the delay block and the error out of the delay block to the error in terminal of the 6517 config block. I've also tried delays between other blocks connected the same way. From what I understand, a called vi can't execute until all inputs are present. Is this the correct way to wire the delays?

  • System call failed. Error 2 (The system cannot find the file specified. ) in execution of system call 'CreateProcessAsUser' with parameter ( , NULL,  Program Files/sapinst_instdir/BS2011/ERP606/AS-ABAP/SYB/HA/DB, &StartupInfo, &ProcessInfo),

    Dear All,
    I am getting a below error while doing ehp6 installation on sybase (high availbility )
    can any one help me on this..?
    An error occurred while processing option SAP Business Suite 7i 2011 > Enhancement Package 6 for SAP ERP 6.0 > SAP Application Server ABAP > SAP ASE > High-Availability System > Database Instance( Last error reported by the step: System call failed. Error 2 (The system cannot find the file specified. ) in execution of system call 'CreateProcessAsUser' with parameter ( , NULL,  Program Files/sapinst_instdir/BS2011/ERP606/AS-ABAP/SYB/HA/DB, &StartupInfo, &ProcessInfo), line (646) in file (d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\syslib\synxcchapp.cpp), stack trace: d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\ejs\ejscontroller.cpp: 181: EJSControllerImpl::executeScript() d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\ejs\jsextension.hpp: 1059: CallFunctionBase::call() d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\osmod\iaxxbprocess.cpp: 423: CIaOsProcess::start_impl() d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\syslib\synxcchapp.cpp: 238: CSyChildApplicationImpl::start(false) d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\syslib\synxcchapp.cpp: 262: CSyChildApplicationImpl::doStart() .). You can no
    Regards,
    Letz..

    Hello Mauricio.
    Thanks
    Two Thinks:
    1.- This error appears precisely in the process of creating SAP users including you mention sidadm:
          A.- Execute sapinst
          B.- Installation option is chosen
                SAP NetWeaver CE Production Edition
                        Installation Options
                            High-Availability System
                                  Central Service  Instance (SCS)
           c.- System ID, Next and appear message error
    2.- However, the user manually create sidadm, I gave the permissions you indicate, and the error message is the same
    Thanks

  • Oracle session Hangs while calling one package function

    Hi all,
    We are a facing a interesting scenario in our code. Consider that you have 2 pakcages(A,B). Ecah packages is having more than 5 functions in it.
    1. A.function1() makes a call to B.function1() - is working fine
    2 .B.function1() calls B.function2() - is working fine
    3. B.function2() calls A.function2() - oracle session hangs in this call.
    If I copy the scropt code from A.function2() and inline (put) it in B.function1() , the execution gets completed without an issue.
    If i run the A.function2() seperatly it works fine. Only calling from B package it is failing.
    If anyone knows the rooot cause of the issue, please let me know.
    Thanks and regards,
    Vijayaraja

    Do you have/use global variables?
    Moving code from one package to another doesn’t necessarily result in logically equivalent programs. In the version of your program which “hangs” you may have crafted an infinite loop. Instrument your code and see if you really stall or just keep going on forever.
    With this kind of cross-dependencies in your libraries you almost ask for trouble.

  • Test Execution hangs while executing a test from Command prompt option

    I have done the following
    1) Created a script Test driver
    2) Added different scripts as Script->Properties->Assets to the driver script
    3) Call each of this asset script from TestDriver using command getScript("<<ScrptName>>".run(1, true, true, true);
    4) Now calling this TestDriver script from command prompt with command
    e:\\OracleATS\\agent
    runScript.bat E:\\INTEGRATION_SERVICES\\Identity_management\\Automation\\Scripts\\MasterScripts\\TestDriver
    TestDriver.jwg
    The script execution hangs at "Initializing VU 1 for Script TestDriver. After few mintues of seeing this message i get error "Execution Timed Out".
    Do I need to keep openscript UI open for script execution from command line ?
    Is there any way to increase this Execution Time out ? May be it is taking time to load the internal script assets. AS other scripts are running fine on the same machine from command prompt itself.
    Complete error is as follows
    C:\Documents and Settings\oracle>e:\\OracleATS\\agent\\runScript.bat E:\\INTEGRATION_SERVICES\\Identity_management\\Automation\\Scripts\\MasterScripts\\TestDriv
    er\\TestDriver.jwg
    Running "TestDriver" ...
    Agent started. Available commands:
    stop - Stop the virtual user after it finishes the current iteration.
    abort - Abort the virtual user cleanly, before it finishes the current itera
    tion.
    exit - Terminate the process immediately
    You may type the above commands at any time.
    12:17:53,418 INFO [1] Initialized script service "oracle.oats.scripting.modules.utilities.api.UtilitiesService"
    12:17:53,418 INFO [1] Initialized script service "oracle.oats.scripting.modules.browser.api.BrowserService"
    12:17:53,418 INFO [1] Initialized script service "oracle.oats.scripting.modules.functionalTest.api.FunctionalTestService"
    12:17:53,465 INFO [1] Initialized script service "oracle.oats.scripting.modules.webdom.api.WebDomService"
    12:17:53,856 INFO [1] Initialized script service "oracle.oats.scripting.modules.datatable.api.DataTableService"
    12:17:53,856 INFO [1] Initializing VU 1 for script TestDriver
    Execution Timed Out.

    Hi e_raja_sekar,
    You wrote:
    public static void main(String args){should be
    public static void main(String args[]){Granted, the below code was tested on Windows XP using J2SE SDK 1.4.1_02 (and not 1.2.2 like Sridhar is using), but when I compiled and executed this code:
    public class BadMain {
      public static void main(String args) {
        System.out.println("Hello World");
    }The output I got was:
    Exception in thread "main" java.lang.NoSuchMethodError: mainSo I don't think this is Sridhar's problem (but I could be wrong) since he says that he gets no error message.
    Cheers,
    Avi.

  • Process.waitFor() causes program to hang!

    I've successfully created a Process and run it using Runtime's exec(String path), and the kinds of processes I've successfully run have included Winzip, a WS_FTP Pro script, and a regular .bat file. I've also successfully called waitFor() on these processes, but in this particular case I'm calling a program that takes a file I give it as a parameter and merges its data into a database. I've been doing this procedure for a while (either from a command line or in a .bat file), but now I need to call it from my Java code. Preferably I'd like to waitFor() the process each time because I need to make sure all the files are merged in chronological order. My current test case only uses ONE file, but in reality there will be several. With one file, I can run the program and it appears to run fine (and it runs fast--like maybe a second or two at most), but whenever I call the following line it hangs indefinitely (I've never seen it terminate, even after several minutes):
    focusProcess.waitFor();
    When I just execute that program by itself by calling a .bat file with a hardcoded filename, I get standard output back from the program I'm calling. I'd like to see this output when I run my Java program and it appears to run fine, because I have no way if it IS running correctly! So, I added the following:
    BufferedInputStream bis = new BufferedInputStream(focusProcess.getInputStream());
    StringBuffer sb = new StringBuffer();
    int c;
    while((c=bis.read()) != -1) {   
    sb.append(c);
    bis.close();
    I'm not sure if this is the right way to monitor that InputStream that I get from the process, and even if that InputStream is going to give me the standard output from that the process normally writes to the terminal. All I do know is that again, the program seems to hang indefinitely, and I guess it has to do with the fact that maybe this process isn't notifying me that it's terminated, and so I'm still waiting for the rest of that InputStream. And yes, I HAVE tried both of these situations together AND separately (so I know that both pieces of code cause the program to hang).
    Any ideas would be much appreciated!

    Paying attention to the standard output from the running process is good for debugging (and reporting program progression, if necessary) but probably doesn't contribute to the problem you are seeing. The standard input to the process, however, is a different story. If the process you have Runtime.exec'd is waiting for something on stdin, then the OS will block on behalf of the program that is blocking for input and never terminate!
    Try running the exec'd command from the command-line and see if it needs any input (i.e. you have to press a key, or enter, or send EOF) for the program to complete. If this is the case then your Java program must supply that process with the appropriate input or it will just hang.
    As for printing the output from a process... here's a quick proof of concept:
    import java.io.*;
    public class Exec {
        public static void main(String args[]) throws Exception {
            // Make sure we've got something to exec.
            if ( args == null || args.length < 1 ) {
                System.out.println("Usage: java Exec COMMAND [ARGS...]");
                System.exit(1);
            // Run the process and print the output.
            Process p = Runtime.getRuntime().exec(args);
            BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));
            String line;
            while ( (line=in.readLine()) != null ) {
                System.out.println("EXEC: "+line);
    }Hope this helps!
    -mike

  • InDesign CS5 Hangs every time I try to open

    Hi there,
    I have been using InDesing CS5 for about 3 or so years now, for work. Just recently, I have begun having some problems where I try to open the program and it hangs, and I have to force quit. I experienced this about a week ago, and after looking at some other forums I tried resetting the preferences and deleting the SING plug-in, based on suggestions for similar problems. It seemed to be working again, where I could open up files and work on them fine - but now, it is doing the same thing again. Every time I try to open a file, or even just the program, and hangs and I have to force quit.
    Any ideas????

    This page has some info on getting Java Se 6 installed...
    Dreamweaver and Java SE 6 Runtime problem on MAC Mountain Lion OSX

  • Sir when i am using print my program get hanged

    when i oppen tally or any other program my program gets hanged and i cant use my print options

    Answer the call using the bluetooth device instead of swiping to answer on the phone. If you swipe to answer on the phone, it assumes you intend to use the phone instead of the bluetooth headset.

  • Breaking a Program Execution into Multiple Threads

    Hi,
    We want to run a BAPI with Differenet parameters synchronoulsy in the same program as the BAPI is taking a very lon time for execution.
    We are Planning to break up the execution and the call o the BAPI into multiple threads that can run synchronously. How can this concept implemented in SAP ABAP.
    Thanks in advance.
    Arunava

    I am using parallel processing in my current client. Basis define a dialog processes group that we can use. This way our program will be limited to the number of processing give in the group. For example, our production system has 5 servers and each servers has 15 dialog processes. Basis reserve in the group 5 dialog processes for each group. So when we run our program, we are limited to 25 processes. We use function module SPT_INITIALIZE to find out the number of dialog processes and free processes for our group.
    The logic of the program as follow:
    Do loop
        Call function module with starting new task and destination in group performing end of task subroutine
    Enddo
    Wait until all task completed (check help on wait-you need to keep track of the number of record completed)
    In end of task subroutine, use command receive results from function to get the return parameters.
    Hope this helps.
    Cheers

  • Phone crashes after every call

    My Droid crashes after every call.  I have to remove the battery and reboot the phone.  (Am running Droid 2.1).
    Verizon - this isn't even funny any more.  What's up with this?

    I haven't seen this before and it sounds really strange.
    Have you tried restoring you phone to "factory defaults". It is quite possible something that you have installed is conflicting somewhere, but it's really hard to guess what it might be.
    Also, while some of the VZW technical people do hang out here and answer questions, you're probably better off contacting VZW Customer Service with this one. You can reach them by dialing 611 on your mobile (which, in this case I wouldn't recommend) or at (800) 922-0204.
    jason

  • Regarding Concurrent Program Execution

    To run the Concurrent program, we need to pass the following Batch SOurce Name as Parameter.
    Currently there are different batch source names for running invoices from different centers.
    Can there be common/single Batch Source name for running all the invoices....? ANy Help is greatly appreciated....

    Review with the functional/user team's, as each batch may have different settings, thus having many ones to manage distinct requirements. You may consolidate some if that's possible, but that decision relies more on the business requirement to import the invoices.
    If You need to always import the same different sources for every center at the same time, you may create a request set with a diferent execution for every source, so they don't 't have to be submitted individually.

  • How to pause program execution?

    I'm developing a board game. It has the Board class, Coin class and Dice class.
    The dice class has an animation to show the dice rolling. The coin class also has an animation to show the coin moving from start square to end square.
    When user clicks on the dice the sequence of steps that take place are -
    getRandomNumber();
    dice.roll();
    coin.move();
    But the problem I'm facing is even before the dice rolling animation stops, the coin moving animation begins.
    How can I pause the program execution so I can move to next line in program only when the animation in the previous is stopped?
    or How can I change the logic so that it goes as desired.

    Timelines (well, actually KeyFrames) have an action variable, where you can put a function doing whatever you need to do at the end of the key frame.
    So, you can make your coin to move at the end of the dice animation (ie. calling coinAnimation.play() in the action of the last key frame of diceAnimation).

  • Skype keeps crashingafter every call

    windows 8.1 pro, skype 7.6.0.105. skype crashes and turns off after every call made incoming or outgoing.have uninstalled using normal and revo uninstaller,cc cleaner for registry, reinstalled three times still same issue even tried with older versions.event veiwer reads as follows:Log Name: Application
    Source: Application Error
    Date: 20/07/2015 22:30:42
    Event ID: 1000
    Task Category: (100)
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: [Removed for privacy]-pc
    Description:
    Faulting application name: Skype.exe, version: 7.6.0.105, time stamp: 0x559165ab
    Faulting module name: ksproxy.ax, version: 6.3.9600.17415, time stamp: 0x5450468f
    Exception code: 0xc0000005
    Fault offset: 0x00007043
    Faulting process ID: 0x187c
    Faulting application start time: 0x01d0c1b037385020
    Faulting application path: C:\Program Files\Skype\Phone\Skype.exe
    Faulting module path: C:\Windows\System32\ksproxy.ax
    Report ID: 929024ea-2f26-11e5-afbc-0019666e7d2d
    Faulting package full name:
    Faulting package-relative application ID:
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2015-07-20T21:30:42.000000000Z" />
    <EventRecordID>7662</EventRecordID>
    <Channel>Application</Channel>
    <Computer>[Removed for privacy]-pc</Computer>
    <Security />
    </System>
    <EventData>
    <Data>Skype.exe</Data>
    <Data>7.6.0.105</Data>
    <Data>559165ab</Data>
    <Data>ksproxy.ax</Data>
    <Data>6.3.9600.17415</Data>
    <Data>5450468f</Data>
    <Data>c0000005</Data>
    <Data>00007043</Data>
    <Data>187c</Data>
    <Data>01d0c1b037385020</Data>
    <Data>C:\Program Files\Skype\Phone\Skype.exe</Data>
    <Data>C:\Windows\System32\ksproxy.ax</Data>
    <Data>929024ea-2f26-11e5-afbc-0019666e7d2d</Data>
    <Data>
    </Data>
    <Data>
    </Data>
    </EventData>
    </Event> please can you put any light on this?

    ruwim wrote:
    Try to uninstall Geovision GV-800  device.unistalled gv800 cctv system and teamviewer 10 still crashing after evry call, but before updates gv800 and temvewer been on here over 6 months and skype was working correctly,think only thing to do now is reload whole system,thats a weeks work unless u think of something else? 

  • Interrupting program execution

    Hello, I want to interrupt/stop my program execution when a certain button is clicked. I want to implement the cancellation button in another GUI which is independent of the parent GUI that contains my running thread. However, when i invoke "Thread.currentThread().interrupt()" to cancel, it doesn't seem to work, and neither does "Thread.currentThread().stop()" of which I understand stop is deprecated. Any help will be appreciated.

    call setEnabled(false) on the enclosing window. Maybe I'm over-simplifying things, but it could work in certain situations. For e.g.,
    import java.awt.BorderLayout;
    import java.awt.Window;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.*;
    public class SetEnabledTest {
      private static void createAndShowUI() {
        final WindowOne winOne = new WindowOne();
        JFrame frame = new JFrame("SetEnabledTest");
        frame.getContentPane().add(winOne.getMainPanel());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.pack();
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
      public static void main(String[] args) {
        java.awt.EventQueue.invokeLater(new Runnable() {
          public void run() {
            createAndShowUI();
    class WindowOne {
      private static final String DISABLED = "Disabled";
      private static final String DISABLE = "Disable for 5 seconds";
      protected static final int DISABLE_TIME = 5000;
      private JPanel mainPanel = new JPanel();
      private JButton controllerBtn = new JButton(DISABLE);
      public WindowOne() {
        controllerBtn.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            final Window win = SwingUtilities.getWindowAncestor(mainPanel);
            if (controllerBtn.getText().equals(DISABLE)) {
              controllerBtn.setText(DISABLED);
              win.setEnabled(false);
              new Timer(DISABLE_TIME, new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                  win.setEnabled(true);
                  controllerBtn.setText(DISABLE);
                  ((Timer)e.getSource()).stop();
              }).start();
        JPanel bottomPanel = new JPanel();
        bottomPanel.add(controllerBtn);
        JPanel topPanel = new JPanel();
        topPanel.add(new JTextField(10));
        topPanel.add(new JButton("Button"));
        mainPanel.setLayout(new BorderLayout());
        mainPanel.add(topPanel, BorderLayout.NORTH);
        mainPanel.add(bottomPanel, BorderLayout.SOUTH);
      public void setEnabled(boolean enabled) {
        Window win = SwingUtilities.getWindowAncestor(mainPanel);
        win.setEnabled(enabled);
      public JPanel getMainPanel() {
        return mainPanel;
    }Edited by: Encephalopathic on Mar 12, 2010 3:11 PM

  • Ifplugd(eth0)[540]: Program execution failed, return value is 1.

    May 14 17:17:11 localhost ifplugd(eth0)[540]: client: Profile "1" does not exist
    May 14 17:17:11 localhost ifplugd(eth0)[540]: client: loading ipv6
    May 14 17:17:11 localhost ifplugd(eth0)[540]: client: loading JBH_Rooms_3
    May 14 17:17:11 localhost ifplugd(eth0)[540]: client: loading foobar
    May 14 17:17:11 localhost ifplugd(eth0)[540]: client: loading heng_lc@tp
    May 14 17:17:11 localhost ifplugd(eth0)[540]: client: loading MYNE
    May 14 17:17:11 localhost ifplugd(eth0)[540]: client: Profile "MYNE" does not exist
    May 14 17:17:11 localhost ifplugd(eth0)[540]: client: loading RESORT
    May 14 17:17:11 localhost ifplugd(eth0)[540]: client: Profile "RESORT" does not exist
    May 14 17:17:11 localhost ifplugd(eth0)[540]: Program execution failed, return value is 1.
    Whenever I plug into a network, I don't know what does this, but Archlinux oddly seems to go through profiles in /etc/network.d. Why it doesn't simply call dhclient on the wired interface ??
    My workaround is to manually setup the wired network everytime.
    x220:~$  grep -v '^ *#' /etc/rc.conf | grep . | tail
    UDEV_TIMEOUT=30
    USEDMRAID="no"
    USEBTRFS="no"
    USELVM="no"
    HOSTNAME="x220"
    interface=eth0
    NETWORK_PERSIST="no"
    WIRELESS_INTERFACE="wlan0"
    WIRED_INTERFACE="eth0"
    DAEMONS=(syslog-ng @network @net-auto-wireless @net-auto-wired @crond @cpufreq @alsa @sshd @httpd)
    Be great how if someone would be kind enough to hint how I should move this to /etc/conf.d/netcfg.
    Also it would be great if http://projects.archlinux.org/netcfg.git/ was on github so I could sanely report bugs.
    Thanks in advance,

    The fink version ( /sw/bin/which ) does what you're looking as well--it doesn't recognize aliases though. tcsh and OS X's csh (which happens to be a duplicate of the tcsh executable) do recognize aliases.
    I guess the script (/usr/bin/which) is there to either echo one's path when a command's not found or give a different response to aliases. Otherwise one could change the script to:
    #! /bin/csh -f
    which $arg
    exit($?)
    Note the added -f...this prevents aliases from being set by csh when they don't exist in the bash shell. But neither script will recognize aliases set in a bash shell.
    TiBook G4   Mac OS X (10.3.9)  

Maybe you are looking for