ابحث في الدعم

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

linux firefox get URL from downloaded file in bashscript

  • ما من ردود
  • 0 have this problem
  • 1 view
more options

I change the default action for e.g. mime type PDF to a bash script. - works I get the filename of the downloaded pdf file in my bash script - works I can do things with this downloaded file - works

But can I get the download URL of this file in my script? It's not a dedicated URL in a tab - so I can not read the URL of the active tab.

It's a direct download link from, let' say, google search.

What do I have to do to get the URL of the downloaded file in a bash script?

Thank you in advanced!

I change the default action for e.g. mime type PDF to a bash script. - works I get the filename of the downloaded pdf file in my bash script - works I can do things with this downloaded file - works But can I get the download URL of this file in my script? It's not a dedicated URL in a tab - so I can not read the URL of the active tab. It's a direct download link from, let' say, google search. What do I have to do to get the URL of the downloaded file in a bash script? Thank you in advanced!