This thread was archived. Please ask a new question if you need help.
Command line for Linux to detect http errors 404 500
Hello! I'm using firefox in tinycore linux to show chromeless some websites but sometimes the screens go white. As this is nothing that happends all the time just doing an F5 or refresh helps to restart the page and works fine. I need help to: Detect the white screen in firefox with a script in bash if possible.
I've searched for firefox command line but I can't find more deep command line to get this error and then execute a script to fix this.
The help from firefox -h I get is this
Usage: firefox [ options ... ] [URL]
where options include:
--display=DISPLAY X display to use --sync Make X calls synchronous --g-fatal-warnings Make all warnings fatal
-h or --help Print this message. -v or --version Print Firefox version. --full-version Print Firefox version, build and platform build ids. -P <profile> Start with <profile>. --profile <path> Start with profile at <path>. --migration Start with migration wizard. --ProfileManager Start with ProfileManager. --no-remote Do not accept or send remote commands; implies --new-instance. --new-instance Open new instance, not a new window in running instance. --UILocale <locale> Start with <locale> resources as UI Locale. --safe-mode Disables extensions and themes for this session. --allow-downgrade Allows downgrading a profile. --MOZ_LOG=<modules> Treated as MOZ_LOG=<modules> environment variable, overrides it. --MOZ_LOG_FILE=<file> Treated as MOZ_LOG_FILE=<file> environment variable, overrides it. If MOZ_LOG_FILE is not specified as an argument or as an environment variable, logging will be written to stdout. --headless Run without a GUI. --ssb <uri> Open a site specific browser for <uri>. --browser Open a browser window. --new-window <url> Open <url> in a new window. --new-tab <url> Open <url> in a new tab. --private-window <url> Open <url> in a new private window. --preferences Open Preferences dialog. --screenshot [<path>] Save screenshot to <path> or in working directory. --window-size width[,height] Width and optionally height of screenshot. --search <term> Search <term> with your default search engine. --setDefaultBrowser Set this app as the default browser. --first-startup Run post-install actions before opening a new window. --kiosk Start the browser in kiosk mode. --jsconsole Open the Browser Console. --jsdebugger [<path>] Open the Browser Toolbox. Defaults to the local build but can be overridden by a firefox path. --wait-for-jsdebugger Spin event loop until JS debugger connects. Enables debugging (some) application startup code paths. Only has an effect when `--jsdebugger` is also supplied. --devtools Open DevTools on initial load. --start-debugger-server [ws:][ <port> | <path> ] Start the devtools server on a TCP port or Unix domain socket path. Defaults to TCP port 6000. Use WebSocket protocol if ws: prefix is specified. --recording <file> Record drawing for a given URL. --recording-output <file> Specify destination file for a drawing recording.