I looped through $_ENV in php and here's what I get (quite a difference, now 
need to figure out what's needed, and how to change it)

HTTP

    [TERM] => xterm
    [PATH] => /sbin:/usr/sbin:/bin:/usr/bin
    [PWD] => /
    [LANG] => C
    [SHLVL] => 2
    [_] => /usr/sbin/httpd

SHELL
    [HOSTNAME] => wowza
    [SHELL] => /bin/bash
    [TERM] => xterm
    [HISTSIZE] => 1000
    [SSH_CLIENT] => XXX.XXX.172.177 33821 22
    [SSH_TTY] => /dev/pts/0
    [USER] => apache
    [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;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=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;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
    [PATH] => 
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
    [MAIL] => /var/spool/mail/root
    [_] => /usr/bin/php
    [PWD] => /var/www/html/ws
    [INPUTRC] => /etc/inputrc
    [LANG] => en_US.UTF-8
    [HOME] => /var/www
    [SHLVL] => 2
    [LOGNAME] => apache
    [SSH_CONNECTION] => XXX.XXX.172.177 33821 XXX.XXX.210.195 22
    [LESSOPEN] => |/usr/bin/lesspipe.sh %s
    [G_BROKEN_FILENAMES] => 1



----- Original Message -----
From: "Jim Feniello" <jfenie...@motionplan.com>
To: cinelerra@skolelinux.no
Sent: Wednesday, March 3, 2010 9:42:16 AM GMT -05:00 US/Canada Eastern
Subject: [CinCV] batch mode shell script acting different via shell/php and http

Jim,
I don't have much time today, but have your script echo out the environment 
variables in the two places (from ssh and then from the php script) in order to 
understand the differences in the execution environments.

scott

_______________________________________________
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra

)ޕ��jf��)��+-
)ޕ��j�(��b��g�m����x��)鮉��f��f���(��b��g��b�ا~�܊w�z��

Reply via email to