Re: [PHP] can button onclick executed a bash script

From: Robert Cummings (robert_at_interjinn.com)
Date: 11/11/03


To: tirumal b <tirumal_b@yahoo.com>
Date: 11 Nov 2003 01:29:56 -0500

On Tue, 2003-11-11 at 01:25, tirumal b wrote:
> Hello All,
>
> A button tag's onclick event can execute a function
> of javascript but can it do the same with bash script
> function. I have two buttons. Each button will call
> its own function.could anyone tell how to write

Directly it cannot do what you want. Indirectly it can force a form
submission which can be checked by the target script page for which
button was clicked, and then depending on the button clicked can execute
a bash script.

HTH,
Rob.

-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'


Relevant Pages

  • can button onclick executed a bash script
    ... A button tag's onclick event can execute a function ... of javascript but can it do the same with bash script ... Protect your identity with Yahoo! ...
    (php.general)
  • Re: php shell-script
    ... Safran von Twesla wrote: ... > I'm trying to execute a working php-script within a bash script which ... > is itself started by cron. ... > It doesn't seem to work.Everything in the bash script is executed ...
    (alt.os.linux)
  • Re: Switching users in a bash script?
    ... How can I most easily accomplish this task? ... my question was whether I can 'su' in a bash script so that the commands that follow the 'su' in che script will be executed as the su'ed user. ... You will have to type each user's password unless the main script runs as root, or unless you use sudo (using "nopasswd" in the sudoers file so user a can execute command b as user c). ...
    (comp.os.linux.misc)
  • Re: bash script
    ... I am trying to write a bash script, ... line from a txt file and execute a command. ...
    (comp.unix.questions)
  • Re: [SLE] Script to check if an application is running
    ... > I want to write a bash script which can be executed by cron every ... > What I normally would do to check if it is running is execute: ... The better way to get what you want is the pidofcommand. ...
    (SuSE)