Re: update software
- From: Brad Bonkoski <bbonkoski@xxxxxxxxxxxxxx>
- Date: Mon, 31 Jul 2006 15:57:37 -0400
This is not really something bash is intended for...
of course you can always do:
#!/bin/bash
LATEST_VER=`/usr/local/php my_spage_parser.php <page.html>`
and then write you PHP script, or Perl, each of which is a better tool for the problem.
Of course you are probably more certain they will have Perl on the machine then PHP, so it might be better to use perl, but same rules apply.
There are bash tutorials out there...
just google for them.
-B
Waqas Toor wrote:
i think Matthew Miller is a bit close to my point what i am asking.
sorry if i couldnt make you guyz understand. now the complete scenario
the thing is i want a script that will parse a webpage to get the
latest version , now i can do it easly in php or pearl or python etc
... but the thing is the freakin requirement of my client is that to
write only bash script.. now how to parse a webpage to get the latest
version,
say the webpage in some part says ... current version: 2.3.2 now in
php i can parse the webpage to get a this point. now as i am totally
dumb in bash etc so needed help ... i hope i am making my problem more
clear :)
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
- Follow-Ups:
- Re: update software
- From: Waqas Toor
- Re: update software
- References:
- update software
- From: Waqas Toor
- Re: update software
- From: Thom Paine
- Re: update software
- From: Waqas Toor
- Re: update software
- From: Matthew Miller
- Re: update software
- From: Waqas Toor
- update software
- Prev by Date: Re: port blocked on FC4
- Next by Date: Re: port blocked on FC4
- Previous by thread: Re: update software
- Next by thread: Re: update software
- Index(es):
Relevant Pages
- Re: How (best) to use web-from entry of an OTP/OPIE password to control a PF-firewall?
... A perl script witch uses Auth::opie cpan. ... PHP talks to the perl executable.
... I understand how to set up OpenVPN passthrough from a remote client ... (Security-Basics) - Re: What is the learning curve for PHP?
... but adds its own features. ... PHP was just a bunch of Perl scripts.
... functions in the script. ... (comp.lang.php) - Re: & behaves differently
... The php script returns 146638 and the perl script 524287. ... Do you
think>> differs in perl and php or is it an overflow problem? ... (comp.lang.php) - Calling "php -f [file]" from within Perl seems broken
... I have a Perl ... script called php_include.cgi that parses a
PHP file for inclusion. ... If I run the exact same command in a shell (even as my apache
... (comp.lang.php) - Re: Help to automatically traverse a login session
... Within this logged-in area, there are links ... area and have the results served
to my script, ... Obviously it's not PHP, but you can call Perl from PHP.
... (comp.lang.php)