[Solved] Bash script to download data from url

You have two bits here. One is to schedule a cron job and the other is to get the file & save it. Steps : Open the terminal & run crontab -e minute(0-59) hour(0-23) day(1-31) month(1-12) weekday(0-6) command In place of minute, hour, day, month & weekday. Also provide the command to run. The command … Read more

[Solved] Return value of process to String

! returns the exit code of the process (0 in your case). If you need the output of the process you should use !! instead: val url = “https://morningconsult.com/alert/house-passes-employee-stock-options-bill-aimed-startups/” import sys.process._ val result = (“wget -qO- ” + url !!).toString println(“result : ” + result) (relevant documentation) solved Return value of process to String

[Solved] Download files from url of site directory

You must keep in mind: if your web-server disallows to scan a directory then you couldn’t get file names. But if the directory is shared in web-server you can get a list of files with using wget command. For example: wget -nv -r -np ‘*.*’ https://example.com/directory/ 2 solved Download files from url of site directory