08-24-2008
Ya thanks all
Simple javascript "ajax" call to the script using "GET" worked. Command line arguments come in in the env variable $QUERY_STRING. I find it hard to write a command line input parser so I might have to go back to my old way of doing things.
javascript -> calls php script (and easily parses parameters) -> calls shell script
as opposed to
javascript -> directly calls shell script (bit annoying to parse the parameters which might be in form "a=1&b=2&bla=5")
Anyone know of an existing lump of code to let me parse these, like its easy to get them in php using $_GET['a'] and $_GET['b] etc
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, i got this script but when i hit reset i loose the times in the form box. Can someone please edit this script so when i hit reset i dont loose the times in the form box's and also have a button to reset everything, including the form boxs
<script language="javascript">
// stopwatch... (1 Reply)
Discussion started by: perleo
1 Replies
2. Shell Programming and Scripting
All
I want to call a KORN shell script inside a javascript. Is it possible ? Please
help me to do this. I want to return or read from shell script in javascript.
Thanx in advance
Regards
Deepak Xavier (1 Reply)
Discussion started by: DeepakXavier
1 Replies
3. Shell Programming and Scripting
i want use ssh on the host01 to execute autoexec.sh on the host02 like following :
host01> ssh host02 autoexec.sh
autoexec.sh include nohup command like follwing :
nohup /home/jack/deletedata.sh &
after i execute ssh host02 autoexec.sh one the host01. i can't found deletedata.sh... (1 Reply)
Discussion started by: orablue
1 Replies
4. Web Development
I am just wondering why do programmers are using this when programming the web? When you making a joomla templates and the more focus in your mind is to target the search engines then java is very important.Not to use that. (2 Replies)
Discussion started by: Anna Hussie
2 Replies
5. Shell Programming and Scripting
<html>
<head>
<title>Weather & Aviation Page - METAR decoder</title>
<meta name="Title" content="Weather & Aviation Page - METAR decoder">
<meta name="Keywords" content="METAR decoder">
<meta name="Publisher" content="SkyStef">
<meta name="Description" content="SkyStefs weather and aviation... (4 Replies)
Discussion started by: anuajay1988
4 Replies
6. Shell Programming and Scripting
Hi
Need help...I have wrritten one code for html through shell scripting in that i am using java scripts to validate some condition and open the html page without clicking the button....
Code Details
echo "<script type="text/javascript">"
echo "function exec_refresh()"
echo "{"
... (4 Replies)
Discussion started by: l_gshankar24
4 Replies
7. Shell Programming and Scripting
I have a shell script (.sh) and I want to pass a parameter value to the awk command but I am getting exception, please assist.
diff=$1$2.diff
id=$2 new=new_$diff
echo "My id is $1"
echo "I want to sync for user account $id"
##awk command I am using is as below
cat $diff | awk... (2 Replies)
Discussion started by: Ashunayak
2 Replies
8. Web Development
I have found this bit of code that nearly does what I want.
Basically 3 input fields, I want to copy t2 to t3 as it's typed but only if t1 contains data AND t3 is empty:
<input type="text" id="t1" />
<input type="text" id="t2" />
<input type="text" id="t3" />
<script> var t2 =... (4 Replies)
Discussion started by: barrydocks
4 Replies
9. Shell Programming and Scripting
Dear Unix gurus,
We have a config shell script file which has 30 variables which needs to be passed to master unix shell script that invokes oracle database sessions. So those 30 variables need to go through the database sessions (They are inputs) via a shell script. one of the variable name... (1 Reply)
Discussion started by: dba1981
1 Replies
10. Shell Programming and Scripting
I want to navigate through a webpage and save that page in my system local automatically. How can I do that by using JavaScript in a Unix shell script. Any suggestions are welcome! (3 Replies)
Discussion started by: abhi3093
3 Replies
LEARN ABOUT DEBIAN
wml::std::tags
wml::std::tags(3) EN Tools wml::std::tags(3)
NAME
wml::std::tags - Standard Support Tags
SYNOPSIS
#use wml::std::tags
# Pass 2: advanced if constructs
<ifdef varname thenval elseval>
# Pass 3: support tag
<perl> ... </perl>
<say> ... </say>
# Pass 4: support tag
<m4> ... </m4>
# Pass 4: symbols
<symbol name value>
<symbol name undef>
# Pass 5: diversions
<dump NAME>
<enter NAME> ... <leave>
<divert NAME> ... </divert>
# Pass 6: support tag
<asubst ...> ... </asubst>
# Client-Side JavaScript: support tag
<javascript [version=..] [language=..]
[type=..] [src=...] [defer] [nohead] [nolang]>
...
</javascript>
# Resynchronize line numbers for more accurate pass 3 warnings
<sync-lines>
DESCRIPTION
This include file defines some standard support tags one needs all the time. All tags are self-explanatory and briefly mentioned in
wml_intro(1), except the last two which are described below.
"<javascript>":
This tag was primarily a shorthand for "<script type="text/javascript" language="JavaScript">" but it has evolved. If the "<head>" tag is
defined and is a complex macro, e.g. when calling "wml::std::page", then Javascript code is automatically passed to this macro and should
be diverted to the HEAD section of HTML documents. This diversion preserve lang slices in multi-lingual documents. Those features may be
disabled by the ``nohead'' and ``nolang'' attributes.
"<sync-lines>":
WML tries to print information on input file and line numbers when warnings or errors are reported in passes 2 and 3. Some special
sentences containing file names and line numbers are inserted during pass 1. So pass 2 have an accurate knowledge of where warnings appear
in input file. But it also filters it without preserving lines, so after pass 2 information is almost unusable. By putting "<sync-lines>"
in input file, it forces pass 2 to resynchronize information on line numbers. So for debugging pass 3, it could be of some help to insert
"<sync-lines>" before ePerl code.
AUTHORS
Ralf S. Engelschall
rse@engelschall.com
www.engelschall.com
Denis Barbier
barbier@engelschall.com
REQUIRES
Internal: P1, P2, P3, P4, P6
External: --
SEE ALSO
wml(1)
EN Tools 2014-04-16 wml::std::tags(3)