Jump to content
Posted 08 March 2016 - 01:55 AM
Posted 09 March 2016 - 03:59 PM
I'm not sure if you're requesting a script, or seeking help writing your own script? It's also unclear to me which OS you are using. If it really is Unix, then I cannot help, as I've never used that OS. I have used some unix-like ones, but most of my experience is with Linux operating systems.
If you'd prefer to write your own script, you might find the chosen answer from ( http://stackoverflow.com/a/25136723 ) helpful as a starting point.
If you are seeking a pre-built script, I've written for Linux, a url checking script called Obituary, which can be found ( http://www.bleepingcomputer.com/forums/t/607572/obituary/ ). However it doesn't output in the format you want, and may not work on your OS. I've made an alternative version which (assuming I've understood what you want) does output in the requested format. It's written for Bash, so you must use Bash or a compatible shell. I'm running Ubuntu 14.04 Desktop AMD64 (a Linux operating system), so that's what it has been tested against. It will report 200 as exists, 400 and 404 as doesnot exist, and anything else as Undetermined. You can change that by editing the if elif else statements at the bottom of the "obituary-checker-task" file.
Steps To Install & Use The Alternative Script:
1. Download the ZIP archive from "https://mega.nz/#!M9gVCSID!oVycTeDiZI3Rpfd3X6ZCPHJfx9L14FE1rhTv8PduOjw". If you want to verify the checksum the SHA-512 is 88e49d1c18a2706e75bee4bdf883effe3853da69d758245cf23cea5bb0d9eee66c38a86a65664587dc8d9b9742d86acb215a26521d1a9af9031fbe0d84c96a42
2. Install tee, bash, sed, mawk, and curl. If you aren't sure how to install these programs, state which OS you're using, and I (or another user) may be able to help with that if we're familiar with the OS. Like I said, I'm a Linux user.
3. Extract the ZIP archive to a folder. I'd suggest to a folder named obituary, located in your user's home folder.
4. To to use type:
bash /directory/obituary-cli --location="/directory" --urllist="/directory/file" --output="/directory2/file"
You'll need to substitute in the correct paths and filenames for this command to work. Location refers to the folder where the script is. Urllist refers to the location of a plain-text file containing the urls you wish to check (one per line), and output refers to a file where you want to save the results of the check. You must use the fullpath for all of these, you cannot use things like "~/".
Screenshot of the script in action:
Edited by hollowface, 09 March 2016 - 04:02 PM.
Posted 21 March 2016 - 07:31 AM
Edited by Captain_Chicken, 21 March 2016 - 10:11 AM.
0 members, 0 guests, 0 anonymous users