Question: I am having difficulty running the below simple script from crontab:

```
#!/bin/bash
notify-send "battery.sh working"

```

The permissions of the file are `rwxr-xr-x` and its running fine with either of the commands `bash battery.sh` and `sh battery.sh`.

In my crontab, I have tried running it with both `bash` and `sh`, with absolute as well as local path. My current crontab looks as follows:

```
* * * * * /home/marpangal/battery.sh
* * * * * sh battery.sh
* * * * * bash battery.sh
* * * * * sh /home/marpangal/battery.sh
* * * * * bash /home/marpangal/battery.sh

```

However the cron does not execute the script and I get no message from notify-send.

Answer: 
So, It will work just fine and should work in all major browsers, the downside is that it isn't valid. It's not necessarily hurting anything, but since we live in a testable, verifiable world, it's technically counter spec, so it's not to standard.
**Is this legit?** No.

Although browser show perfectly but W3C Validator will not permit you write this way. You will get error if you go with your code in validation engine. Validator will show you message like following.

"**Error:** Element div not allowed as child of element ol in this context."

Also see here: `https://html.spec.whatwg.org/#toc-dom` in "**Semantics, structure, and APIs of HTML documents**" section to get overall idea.