Executing a bash script upon file creation

How about incron? It triggering Commands On File/Directory Changes. sudo apt-get install incron Example: <path> <mask> <command> Where <path> can be a directory (meaning the directory and/or the files directly in that directory (not files in subdirectories of that directory!) are watched) or a file. <mask> can be one of the following: IN_ACCESS File was … Read more

How to use goto statement correctly

As already pointed out by all the answers goto – a reserved word in Java and is not used in the language. restart: is called an identifier followed by a colon. Here are a few things you need to take care of if you wish to achieve similar behavior – outer: // Should be placed … Read more