4 ms·
Why? Crob is simple, well understood, and works well. Why in god's name do you want to reinvent the wheel?
by tb_technical 4y ago
Why? Crob is simple, well understood, and works well. Why in god's name do you want to reinvent the wheel?
- hulitu 4y agoBecause is not round enough. This is a trend in SW: facelift every couple of years.
- yawaramin 4y agoHow does it work if I want to ensure that a certain volume must be mounted before a job runs?
- tb_technical 4y agoAdd the check at the start of the script?
- yawaramin 4y agoWhat check exactly? What's the command?
- tb_technical 4y agoTry this, replace "/foo/bar" with the path to your mount point, and the echos with additional desired behaviour. (I'm assuming you're writing a bash script on a Linux system) if grep -qs '/foo/bar' /proc/mounts; then echo "/foo/bar mounted" else echo "/foo/bar not mounted" return 1 || exit 1 fi Put these commands below the shebang but before the start of the script. I hope this helps you! Edit: I added a crapload of newlines to better show the indentation and newlines required for the script to work. Sorry it's ugly