Thanks everyone - I was able to SSH in and get everything configured and
So now I am working on my ultimate goal which is to have a php cli script
run from the job scheduler at certain times of the day. I attempted to
create a shell script that will chroot into my jail, then call the php
chroot /QOpenSys/mwh001 /usr/bin/bsh
php InstanceInterface_v2.php "$1" "$2"
If I try to run this with a privileged profile from a 5250 command line.
[CALL PGM(QP2SHELL) ] I get a message that it is not found...
/QOpenSys/usr/bin/-sh: /QOpenSys/mwh001/home/mwh001/aws_php/runAWS.sh: not
I get that error even when I go into PASE (QP2TERM) and call the shell
script from that command line.
I know the .sh script exists and is accessible from the profile, so I'm
not sure what it can't find. If I run each line interactively it works
like a charm...
-rwxrwxrwx 1 mwh001 0 120 Jan 5 14:28 runAWS.sh
Is there another way to run my php program in batch from the IBM i?
EDI/Web Services Developer
From: Aaron Bartell <aaronbartell@xxxxxxxxx>
To: IBMi Open Source Roundtable <opensource@xxxxxxxxxxxx>
Date: 01/04/2017 02:57 PM
Subject: Re: [IBMiOSS] Attempting chroot
Sent by: "OpenSource" <opensource-bounces@xxxxxxxxxxxx>
I could write up some sample code to do that. Not sure where I'd put it,
lots more stuff.....
As an Amazon Associate we earn from qualifying purchases.