If you haven’t a GUI to run your preferred email client or a browser, and you need to check if you have received new mails in your gmail account, you can use your favourite shell in conjuction with the CURL application.
In another post, I explained how to use the FOR command to loop through a range of numbers. This time I want to show some other interesting functionalities of the FOR command:
If you have to repeat the same piece of code inside a windows batch file you have several options to work on.
First you can think to repeat the code for each time you have to call it!!!!
Then you can think of using flow control…
The start command is an internal command of the windows shell, it is a very powerful and useful command, in the following few lines you will find some examples of the start usage.
1. Open current directory in explorer
C:\> start .
Imagine you have a text file (txt.txt in the example) containing the following few lines:
and you want to extract the lines containing duplicate characters. The result will be the following:
Latest versions of mosquitto (since 1.4) include the websockets interface, but the binary download available from the website does not. So you have to download the source code and build the packet your own, last you have to configure mosquitto to use websockets.
The Italian date format is a format for dates expressed as follows.
the epoch time is defined as the number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970.
So 1428773908 shall be expressed as 11/04/2015.