rminal (control) codes are used to issue specific commands to your terminal. This can be related to swi... n. You can print the codes with a simple ''echo'' command.
__**Note:**__ I see codes referenced as "Ba... times (several "Bash tutorials" etc...): That's a completely incorrect definition.
===== The tput command =====
Because there's a large number of differen
====== Terminal Colors ======
There exists common confusion about terminal colors. This is what we ha... "
</code>
- or
https://raw.githubusercontent.com/JohnMorales/dotfiles/master/colors/24-bit-color.sh
- or http://github.com/robertknight/konsole/tree/master/tests/color-spac... of
"RGB". You need to use the "setaf" and "setab" commands to set the foreground
and background respect
llow one of these two rules:
__**Indention using command width:**__
<code>
activate some_very_long_opt... ession of "these belong together".
==== Breaking compound commands ====
[[syntax:ccmd:intro | Compound commands]] form the structures that make a shell script diff
# Terminal Colors
ref: https://gist.github.com/XVilka/8346728
There exists common confusion about terminal colors. This is what we have right now:
... 0m\n"
</code>
- or https://raw.githubusercontent.com/JohnMorales/dotfiles/master/colors/24-bit-color.sh \\
- or http://github.com/robertknight/konsole/tree/master/tests/color-spac
ermissions** (filemode). The file name can be any combination of legal filename characters. Adding a pr... st character is a hashmark "#", which indicates a comment. The shebang is for the operating system, not... [[scripting:bashbehaviour | Bash behaviour]].
A common method is to specify a shebang like
<code>
#!/... portable way to specify an interpreter. **It's a common misconception that it solves all problems. Per
====== Mise en place des scripts ======
Pour commencer nous allons générer des rapports directement dans le terminal avec la commande “ lr_log2report ” .
Exemple :
lr_log2report syslog /var/log/syslog
lr_log2report common /var/log/apache2/access.log
Si tout fonction... rapport par semaine : #!/bin/sh
lr_log2mail combined --log-file /var/log/apache2/access.log.1 -s
s un peu plus loin. Il faut savoir que toutes les commandes produisent deux flux de données différents, comme le montre la figure suivante :
la sortie s... ut s'affiche dans la console : la sortie standard comme la sortie d'erreurs. Cela explique pourquoi vou... l'air identiques.
Tout à l'heure, nous avons vu comment rediriger la sortie standard dans un fichier.
. This tutorial shows how-to use [[https://github.com/pahaz/bashtest|bashtest]] tool for testing your s... sts ====
Lets write tests. We just write a shell command for testing our work.
Create file **tests.ba... re **.bashtest** examples in the [[https://github.com/pahaz/bashtest | bashtest github repo]]. You can ... te your question or report a bug [[https://github.com/pahaz/bashtest/issues | here]].
Happy testing!
really matter to me whether I used ping or a curl command like this.
Here's a modified version of the ... if web site is alive//>
<?php
$url = 'www.google.com';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT... rce code at this "Lost in Code" URL.
Issue a ping command from a PHP script
As a final option, if you can run the ping command from your command line, you can also just exe
cute after page load? =====
https://stackoverflow.com/questions/807878/how-to-make-javascript-execute-a...
__These solutions will work:__
As mentioned in comments use defer:
<sxh js>
<script src="deferMe.j...
<script>
// Check if the page has loaded completely
<a target="_blank" href="http://feedproxy.google.com/%7Er/KorbensBlog-UpgradeYourMind/%7E3/bxX9Z4Jb1gY... a barre d'adresse du navigateur.</p><p>Mais alors comment faire pour avoir des URLs propres dès la prem