I found the various posts in "Upgrading" very interesting, especially
with the "Expect" application. I started to build a script to install my Brother printers but ran up against a "downloadend" redirection problem.
I copied the URL for the driver install tool, which works well enough
when executed from the Brother support page, but doesn't work when
executed from a wget or curl command inside a script. Played around with --max-redirect (wget) and -L -J -O options (curl) but no success.
Suggestions please.
I found the various posts in "Upgrading" very interesting, especially
with the "Expect" application. I started to build a script to install my Brother printers but ran up against a "downloadend" redirection problem.
I copied the URL for the driver install tool, which works well enough
when executed from the Brother support page, but doesn't work when
executed from a wget or curl command inside a script. Played around with --max-redirect (wget) and -L -J -O options (curl) but no success.
Suggestions please.
On 2022-04-03, Grimble <grimble@nomail.afraid.org> wrote:
I found the various posts in "Upgrading" very interesting, especially
with the "Expect" application. I started to build a script to install my
Brother printers but ran up against a "downloadend" redirection problem.
I copied the URL for the driver install tool, which works well enough
when executed from the Brother support page, but doesn't work when
executed from a wget or curl command inside a script. Played around with
--max-redirect (wget) and -L -J -O options (curl) but no success.
Suggestions please.
Why would you not include the actual command from the script so we could
see whether or not you had some error it, or to see if we could fix the problem.?
And does wget or curl put out any error messages? Or do you dump the
error messages to /dev/null (bad idea if you do while you are
debugging).
On Sun, 3 Apr 2022 16:50:30 +0100, Grimble wrote:
I found the various posts in "Upgrading" very interesting, especially
with the "Expect" application. I started to build a script to install my
Brother printers but ran up against a "downloadend" redirection problem.
I copied the URL for the driver install tool, which works well enough
when executed from the Brother support page, but doesn't work when
executed from a wget or curl command inside a script. Played around with
--max-redirect (wget) and -L -J -O options (curl) but no success.
Suggestions please.
Your description is vague as to exactly what is done where with what.
My printer scripts pull down the brother install script, disable all package managers except urpmi, install rpms that brother needs, remove any brother rpms, then unpack, run the brother install script via expect and
re-enable other package managers upon script exit.
I got a log of rpms installed by using the "script" command. Example:
script -c " linux-brprinter-installer HL-L2380DW" printer_install.log the very first time I did the install.
printer_install.log has a copy of all output sent to terminal/screen.
On 03/04/2022 19:11, Bit Twister wrote:
On Sun, 3 Apr 2022 16:50:30 +0100, Grimble wrote:<snip>
I found the various posts in "Upgrading" very interesting, especially
with the "Expect" application. I started to build a script to install my >>> Brother printers but ran up against a "downloadend" redirection problem. >>> I copied the URL for the driver install tool, which works well enough
when executed from the Brother support page, but doesn't work when
executed from a wget or curl command inside a script. Played around with >>> --max-redirect (wget) and -L -J -O options (curl) but no success.
Suggestions please.
Your description is vague as to exactly what is done where with what.
My printer scripts pull down the brother install script, disable all package >> managers except urpmi, install rpms that brother needs, remove any brother rpms, then unpack, run the brother install script via expect and
re-enable other package managers upon script exit.
I got a log of rpms installed by using the "script" command. Example:
script -c " linux-brprinter-installer HL-L2380DW" printer_install.log >> the very first time I did the install.
printer_install.log has a copy of all output sent to terminal/screen.
Summary reply: As usual your replies are informative - didn't know about
the script command.
The URL you used is very different from the one I found (see reply to William). I'll use it as a basis for my script.
Thanks for the expect snippet; I'll build it in.
On 03/04/2022 17:06, William Unruh wrote:Well yes, it is NOT a download site. It is page which asks you to click
On 2022-04-03, Grimble <grimble@nomail.afraid.org> wrote:If I right click on Driver Support Tool in the Brother Support Downloads page and copy link address, I get https://support.brother.com/g/b/branch/downloadend.aspx?c=gb&lang=en&prod=hll2360dn_eu_as&os=127&dlid=dlf006893_000&flang=4&type3=625
I found the various posts in "Upgrading" very interesting, especially
with the "Expect" application. I started to build a script to install my >>> Brother printers but ran up against a "downloadend" redirection problem. >>> I copied the URL for the driver install tool, which works well enough
when executed from the Brother support page, but doesn't work when
executed from a wget or curl command inside a script. Played around with >>> --max-redirect (wget) and -L -J -O options (curl) but no success.
Suggestions please.
Why would you not include the actual command from the script so we could
see whether or not you had some error it, or to see if we could fix the
problem.?
And does wget or curl put out any error messages? Or do you dump the
error messages to /dev/null (bad idea if you do while you are
debugging).
When executed from the script I was developing, it creates a text file
called "downloadend", which cannot be executed to install any drivers. Googling around, I thought some redirection was involved. within the HTML.
It is significantly different from the URL that Bit uses in his post.
On 03/04/2022 17:06, William Unruh wrote:
On 2022-04-03, Grimble <grimble@nomail.afraid.org> wrote:If I right click on Driver Support Tool in the Brother Support Downloads
I found the various posts in "Upgrading" very interesting, especially
with the "Expect" application. I started to build a script to install my >>> Brother printers but ran up against a "downloadend" redirection problem. >>> I copied the URL for the driver install tool, which works well enough
when executed from the Brother support page, but doesn't work when
executed from a wget or curl command inside a script. Played around with >>> --max-redirect (wget) and -L -J -O options (curl) but no success.
Suggestions please.
Why would you not include the actual command from the script so we could
see whether or not you had some error it, or to see if we could fix the
problem.?
And does wget or curl put out any error messages? Or do you dump the
error messages to /dev/null (bad idea if you do while you are
debugging).
page and copy link address, I get https://support.brother.com/g/b/branch/downloadend.aspx?c=gb&lang=en&prod=hll2360dn_eu_as&os=127&dlid=dlf006893_000&flang=4&type3=625
When executed from the script I was developing, it creates a text file
called "downloadend", which cannot be executed to install any drivers. Googling around, I thought some redirection was involved. within the HTML.
It is significantly different from the URL that Bit uses in his post.
On 2022-04-04, Grimble <grimble@nomail.afraid.org> wrote:
On 03/04/2022 17:06, William Unruh wrote:Well yes, it is NOT a download site. It is page which asks you to click
On 2022-04-03, Grimble <grimble@nomail.afraid.org> wrote:If I right click on Driver Support Tool in the Brother Support Downloads
I found the various posts in "Upgrading" very interesting, especially
with the "Expect" application. I started to build a script to install my >>>> Brother printers but ran up against a "downloadend" redirection problem. >>>> I copied the URL for the driver install tool, which works well enough
when executed from the Brother support page, but doesn't work when
executed from a wget or curl command inside a script. Played around with >>>> --max-redirect (wget) and -L -J -O options (curl) but no success.
Suggestions please.
Why would you not include the actual command from the script so we could >>> see whether or not you had some error it, or to see if we could fix the
problem.?
And does wget or curl put out any error messages? Or do you dump the
error messages to /dev/null (bad idea if you do while you are
debugging).
page and copy link address, I get
https://support.brother.com/g/b/branch/downloadend.aspx?c=gb&lang=en&prod=hll2360dn_eu_as&os=127&dlid=dlf006893_000&flang=4&type3=625
When executed from the script I was developing, it creates a text file
to agree to the license and then it lets you download.
No redirection. Just a click button to agree to the license.
Try https://download.brother.com/welcome/dlf006893/linux-brprinter-installer-2.2.3-1.gz
which is the where that button takes you.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 371 |
Nodes: | 16 (2 / 14) |
Uptime: | 171:38:40 |
Calls: | 7,915 |
Files: | 12,983 |
Messages: | 5,797,531 |