Re: update software

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 :)



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux