In short, if you run php script on command line, you will get something like this
At the same time, If you're trying to trigger it from a web interface, you will receive output as
You need to check following
The user running the code (you vs apache)
SELinux (disable SELinux)
PATH
If you are running some time consuming big programs, then max_execution_time or memory_limit in php.ini
program executed by browser (with apache) and for cli (terminal - without apache) may have different values for max_execution_time or memory_limit - usual php.ini for cli has more memory and it could run for longer period of time
Whether user apache has enough permission to read, write and execute programs/files
Dear all.....
I am currently writing a Help-Desk / Knowledge Base application using PHP/PostGreSQL.
I authenticate the user using a quite elaborate mechanism of cookies. The problem is that using cookies (I also have a version using sessions with the same problem), I can only seem to get one... (4 Replies)
I have an interactive menu script written in bash and I would like use PHP to open the interactive bash menu in a browser.
Is this possible?
Using the sytem() function in php runs the script but it's all garbled.
Seems like maybe a terminal window needs to be opened in php first?
... (1 Reply)
Hi all,
I want to execute a shell script in which I call ssh to execute a remote command.
Everything works fine from command line but when I try to call from PHP (with exec or whatever function) it fails.
After some time I came to the root cause: when www-data execute the ssh command it asks... (4 Replies)
Im trying to make a script that prints 2 messages to a screen session, one after the other.
screen -x session44 -X stuff "`printf "Test 1\r"`"
This works fine, but adding a second lien with a different message yields no results.
Changed Subject: Please Follow Forum Rules Regarding... (1 Reply)
Hi all,
I have a script from a programmer, for which I need to analyze a problem.
The script gathers audit info and prints out the results. Two different departments use it, on two different printers. In the script department the there are no issues. In the other department the same script... (10 Replies)
I want to make a script that check for the argument passed to it and generates an error in case any character/string argument passed to it.
I am using below code, but its not working. can anyone help.
#!/bin/bash
if ]; then
echo 'An integer argument is passed to the script hence... (3 Replies)
Hi All,
Am trying script to compare 2 files and print the difference found from old file to new file on line by line basis on side by side display.
Basically line by line comparision and files may contain blank line as well
I know we have compare/diff commands but i don't how to make... (10 Replies)
I am connecting to a device using telnet, I want my script to perform certain commands : ie- show device , show inventory..etc and write the output it sees from the terminal to a file.
this is what I have got :
#!/usr/bin/expect --
set running 1
spawn telnet <ip address>
expect ... (1 Reply)
Discussion started by: samantha123
1 Replies
LEARN ABOUT OPENSOLARIS
conjure
conjure(1) General Commands Manual conjure(1)NAME
conjure - interprets and executes scripts written in the Magick Scripting Language (MSL).
SYNOPSIS
conjure [options] script.msl
OVERVIEW
The conjure program is a member of the ImageMagick(1) suite of tools. Use it to process a Magick Scripting Language (MSL) script. The Mag-
ick scripting language (MSL) will primarily benefit those that want to accomplish custom image processing tasks but do not wish to program,
or those that do not have access to a Perl interpreter or a compiler.
For more information about the conjure command, point your browser to file:///usr/share/doc/ImageMagick-6.3.4/www/conjure.html or
http://www.imagemagick.org/script/conjure.php.
DESCRIPTION
Image Settings:
-debug events display copious debugging information
-help print program options
-log format format of debugging information
-monitor monitor progress
-quiet suppress all warning messages
-regard-warnings pay attention to warning messages
-verbose print detailed information about the image
-version print version information
In additiion, define any key value pairs required by your script. For example,
conjure -size 100x100 -color blue -foo bar script.msl
SEE-ALSOImageMagick(1)COPYRIGHT
Copyright (C) 1999-2007 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see
file:///usr/share/doc/ImageMagick-6.3.4/www/license.php or http://www.imagemagick.org/script/license.php
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Availability | SUNWimagick |
+--------------------+-----------------+
|Interface Stability | External |
+--------------------+-----------------+
NOTES
Source for ImageMagick is available on http://opensolaris.org.
ImageMagick Date: 2005/03/01 01:00:00 conjure(1)