-
-
Save h4wkst3r/c2a9b86ad8de5e11ff57115da78acc5e to your computer and use it in GitHub Desktop.
Downloading Files via JRunscript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Windows - download from web server | |
jrunscript -e "cat('http://x.x.x.x/file.txt')" > C:\Temp\file.txt | |
jrunscript -e "cp('http://x.x.x.x/file.txt','C:\\Temp\\file.txt')" | |
//Windows - download from file share | |
jrunscript -e "cat('\\\\x.x.x.x\\folder\\file.txt')" > C:\Temp\file.txt | |
jrunscript -e "cp('\\\\x.x.x.x\\folder\\file.txt','C:\\Temp\\file.txt')" | |
//Linux & macOS - download from web server | |
jrunscript -e "cat('http://x.x.x.x/file.txt')" > /tmp/file.txt | |
jrunscript -e "cp('http://x.x.x.x/file.txt',’/tmp/file.txt')" | |
//Linux & macOS - download from file share | |
jrunscript -e "cat('\\\\x.x.x.x\\folder\\file.txt')" > /tmp/file.txt | |
jrunscript -e "cp('\\\\x.x.x.x\\folder\\file.txt',’/tmp/file.txt')" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment