04-21-2011
SSH call
at the moment I am using lynx -dump to run the php file
Quote:
lynx -dump domain name/phpfile.php
I have a list of these for all the domains. What I am trying to get is that it would run each lynx command one after the other. ie run lynx -dump domainame1/phpfile.php finish running then run lynx -dump domain name2/phpfile.php
Is there a better way of doing this?
The script is to pull data from a large database and post it in the site specific database.
Thanks
This User Gave Thanks to SergioP For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a script that generates an output file after pulling data from a local DB on one of my boxes. There are other nearly-identical boxes on the network, each with their own local DB, and I'd like to run the script there too. Copying the script to each box and then running them individually... (11 Replies)
Discussion started by: bschnair
11 Replies
2. Shell Programming and Scripting
I have a script that i need to run from different paths.
for example
mypc/path1/path2/,
mypc/path1/path2/path3/, and
mypc/path1/path2/path3/path4
How do i set up that script so that it can execute in any
of the above paths or how can i make it run on any path on my computer?? (5 Replies)
Discussion started by: dowell
5 Replies
3. UNIX for Dummies Questions & Answers
Hello All!
I am looking to build a monitoring script.
The script should always run as a system service of some type and should always check that a PHP script is running.
Maybe there is a way to assign a PHP script to a certain PID so that the monitor script that check for the PID in top... (4 Replies)
Discussion started by: elDeuce
4 Replies
4. UNIX for Dummies Questions & Answers
I wrote a .sh script to run 5 php scripts. The problem is that it's running 1 then 2 then 3 in that order .... I want it to execute all 5 at ONCE....
nohup php /home/script1/script1.php && nohup php /home/script2/script2.php && nohup php /home/script3/script3.php && nohup php... (1 Reply)
Discussion started by: holyearth
1 Replies
5. Shell Programming and Scripting
Hello,
I am a Unix newbie and I need a script in which I can run a command on multiple servers at work. The command is to start a storage process and I am sick of doing it manually on all servers..
Here's the command:
/opt/bss/bin/snmptable -CB -v2c -c P67LzuBm hostname hrStorageTable... (4 Replies)
Discussion started by: kinyyy
4 Replies
6. Programming
I want to know, is there a way to track how long anyone has been logged into website and then insert it up for each time they have logged on.
In case, user a logs in for 30 minutes, then later comes back and logs in for an hour, then later comes back and logs in for 50 minutes,
Add... (1 Reply)
Discussion started by: AimyThomas
1 Replies
7. Shell Programming and Scripting
I have a script that I need to run on one file at a time. Unfortunately using for i in F* or cat F* is not possible. When I run the script using that, it jumbles the files and they are out of order. Here is the script:
gawk '{count++; keyword = $1}
END {
for (k in count)
{if (count == 2)... (18 Replies)
Discussion started by: newbie2010
18 Replies
8. Shell Programming and Scripting
I need to run a script on a bunch of remote servers. how can this be done without ssh into each individual server and run it
its under /sbin/script.sh on each server (1 Reply)
Discussion started by: tdubb123
1 Replies
9. UNIX for Dummies Questions & Answers
Hi Guys,
I've been having a look around to try and understand how i can do the below however havent come across anything that will work.
Basically I have a parser script that I need to run across all files in a certain directory, I can do this one my by one on comand line however I... (1 Reply)
Discussion started by: mutley2202
1 Replies
10. Shell Programming and Scripting
Linux System having all Perl, Python, PHP (and Ruby) installed
From a Shell script, can call a Perl, Python, PHP (or Ruby ?) file
eg
eg
a Shell script run in a case statement call to run a php file, also Perl or/and Python file???
Like
#!/usr/bin/bash
....
....
case $INPUT_STRING... (1 Reply)
Discussion started by: hoyanet
1 Replies
LEARN ABOUT LINUX
man2html
man2html(1) General Commands Manual man2html(1)
NAME
man2html - format a manual page in html
SYNOPSIS
man2html [options] [file]
DESCRIPTION
man2html converts a manual page as found in file (or stdin, in case no file argument, or the argument "-", is given) from man-style nroff
into html, and prints the result on stdout. It does support tbl but does not know about eqn. The exit status is 0. If something goes
wrong, an error page is printed on stdout.
This can be used as a stand-alone utility, but is mainly intended as an auxiliary, to enable users to browse their man pages using a html
browser like lynx(1), xmosaic(1) or netscape(1).
The main part of man2html is the troff-to-html engine written by Richard Verhoeven (rcb5@win.tue.nl). It adds hyperlinks for the following
constructs:
foo(3x) "http://localhost/cgi-bin/man/man2html?3x+foo"
method://string "method://string"
www.host.name "http://www.host.name"
ftp.host.name "ftp://ftp.host.name"
name@host "mailto:name@host"
<string.h> "file:/usr/include/string.h"
(The first of these can be tuned by options - see below.) No lookup is done - the links generated need not exist. Also an index with
internal hyperlinks to the various sections is generated, so that it is easier to find one's way in large man pages like bash(1).
OPTIONS
When reading from stdin, it is not always clear how to do .so expansion. The -D option allows a script to define the working directory.
-D pathname
Strip the last two parts from the pathname, and do a chdir(dir) before starting the conversion.
The -E option allows the easy generation of error messages from a cgi script.
-E string
Output an error page containing the given error message.
The general form of a hyperlink generated for a man page reference is
<method:cgipath><man2htmlpath><separator><manpage>
with a default as shown above. The parts of this hyperlink are set using the various options.
-h Set method:cgipath to http://localhost.
-H host[.domain][:port]
Set method:cgipath to http://host.domain:port.
-l Set method:cgipath to lynxcgi:/usr/lib.
-L dir Set method:cgipath to lynxcgi:dir.
-M man2htmlpath
Set the man2htmlpath to use. The default is /cgi-bin/man/man2html.
-p Set separator to '/'.
-q Set separator to '?'. This is the default.
-r Use relative html paths, instead of cgi-bin paths.
On a machine without running httpd, one can use lynx to browse the man pages, using the lynxcgi method. When some http daemon is running,
lynx, or any other browser, can be used to browse the man pages, using the http method. The option -l (for `lynxcgi') selects the former
behaviour. With it, the default cgipath is /usr/lib.
In general, a cgi script can be called by
<path_to_script>/<more_path>?<query>
and the environment variables PATH_INFO and QUERY_STRING will be set to <more_path> and <query>, respectively. Since lynxcgi does not han-
dle the PATH_INFO part, we generate hyperlinks with `?' as a separator by default. The option -p (for `path') selects '/' as a separator,
while the option -q (for `query') selects '?' as a separator.
The option -H host will specify the host to use (instead of localhost). A cgi script could use
man2html -H $SERVER_NAME
if the variable SERVER_NAME is set. This would allow your machine to act as a server and export man pages.
BUGS
There are many heuristics. The output will not always be perfect. The lynxcgi method will not work if lynx was compiled without selecting
support for it. There may be problems with security.
AUTHOR
Richard Verhoeven was the original author of man2html. Michael Hamilton and Andries Brouwer subsequently improved on it. Federico
Lucifredi <flucifredi@acm.org> is the current maintainer.
SEE ALSO
lynx(1), man(1), hman(1)
1 January 1998 man2html(1)