Programmation Bash/Interactions avec l'utilisateur Un livre de Wikilivres. Lire la saisie d'un utilisateur[modifier | modifier le wikicode] Les commandes suivantes permettent de gérer l'interaction avec l'utilisateur : la commande echo affiche des données soit sur la sortie standard, soit sur la sortie d'erreur,la commande read lit les valeurs entrées au clavier et les stocke dans une variable. read var permet de lire une valeur entrée au clavier par l'utilisateur et de stocker cette valeur dans la variable var. Exemple : $ read a toto $ echo $a toto Dans cet exemple, read lit une valeur que l'utilisateur saisit au clavier en l'occurence : toto. Si aucun nom de variable n'est fourni lors de l'appel de read, la valeur entrée par l'utilisateur est stockée dans la variable REPLY. Exemple $ read sidonie $ echo $REPLY sidonie Interaction et case[modifier | modifier le wikicode] Souvent, dans les scripts, on trouve la structure suivante : read case $REPLY in valeur1) instruction(s);; valeur2) instruction(s);; valeur3) instruction(s);; ... esac
A Comparison of Solaris, Linux, and FreeBSD Kernels at OpenSolaris.org In addition to the Oracle Technology Network (OTN) , developers and system administrators can find Oracle Solaris information on Twitter and Facebook and at the official Oracle Solaris blog . Available Solaris source can be viewed using the OpenGrok source browser . The majority of the source is distributed under an OSI-approved license. Code based on existing open source projects continues to be available under its current license(s). [*] The Caiman Project delivers installation technology. The IPS Project delivers the network-based Image Packaging System. [*] Many projects stopped publishing current source in August 2010 (including the ON (Operating System/Networking) project).
gnome-open: Open Anything from the Command Line & Ubuntu Blo Posted by Carthik in commands, gnome, guides, ubuntu. trackback There is a command called gnome-open which I find very handy. I thought of sharing it with you, and was searching for documentation on it, and found none, neither on the web using google, nor on the system. Simply put, the commandgnome-open opens the item specified by the url with the preferred GNOME app for that file/mime-type. In a sense, this command resembles the universal “open” command on Mac OSX. Read on for examples… Examples include: gnome-open google.com This will open the specified website in your preferred browser gnome-open mailto:someone@example.com This will start a new email to the specified address in your preferred mail client gnome-open . gnome-open . gnome-open star.pdf Will open star.pdf in Evince, or your preferred pdf reader gnome-open foo.txt Will open foo.txt in a text editor This goes on, for all possible mime types. Like this: Like Loading...
tutoriel:script_shell Un script shell permet d'automatiser une série d'opérations. Il se présente sous la forme d'un fichier contenant une ou plusieurs commandes qui seront exécutées de manière séquentielle. #!/bin/bash# This script will take an animated GIF and delete every other frame# Accepts two parameters: input file and output file# Usage: ./<scriptfilename> input.gif output.gif # Make a copy of the filecp "$1" "$2" # Get the number of framesnumframes=$(gifsicle --info "$1" \ | grep --perl-regexp --only-matching '\d+ images' \ | grep --perl-regexp --only-matching '\d+') # Deletionlet i=0while test $i -lt $numframesdo rem=$(( $i % 2 )) if test $rem -eq 0 then gifsicle "$2" --delete "#"$(($i/2)) -o "$2" fi let i=i+1 done Méthode graphique Votre script est un simple fichier texte, par défaut il s'ouvre donc avec l'éditeur de texte défini par défaut (ex : Gedit dans une session Unity ou Gnome). Par ailleurs Nautilus ne propose pas de lancer le script par simple clic avec les réglages de bases. Problème connu
solaris vs freebsd vs linux De eso va mas o menos interesante artículo que compara los kernels de solaris, freebsd y linux desde un punto de vista constructivo (que no es poco). Algunas cosas son curiosas Solaris has support for a "fixed priority" class, a "system class" for system threads (such as page-out threads), an "interactive" class used for threads running in a windowing environment under control of the X server En Linux, Ingo Molnar propuso cosas parecidas (añadir algo que permitira marcar a las X & friends como "interactivos" para poder tratarlos de manera especial, o poner las X a prioridad -10 para olvidarse de los problemas). Linux divides machine-dependent layers from machine-independent layers at a much higher level in the software. Igual que esta. Y la mejor de todas: Solaris, FreeBSD, and Linux are obviously benefiting from each other.
Cannot enter phpmyadmin as root (MySQL 5.7) Microkernel Structure of monolithic and microkernel-based operating systems, respectively Microkernels were developed in the 1980s as a response to changes in the computer world, and to several challenges adapting existing "mono-kernels" to these new systems. New device drivers, protocol stacks, file systems and other low-level systems were being developed all the time. This code was normally located in the monolithic kernel, and thus required considerable work and careful code management to work on. Microkernels were developed with the idea that all of these services would be implemented as user-space programs, like any other, allowing them to be worked on monolithically and started and stopped like any other program. This would not only allow these services to be more easily worked on, but also separated the kernel code to allow it to be finely tuned without worrying about unintended side effects. Although major work on microkernels had largely ended, experimenters continued development.
Comprendre les enregistrements DNS | Support Icodia Vous pouvez utiliser votre nom de domaine dans le cadre de différents services : adresses email,un ou plusieurs sites web,un service FTP, etc. Pour cela, chaque nom de domaine est paramétré pour pointer vers un ou plusieurs serveurs appelés « Serveurs DNS » (Domain name server) qui redirigent les emails ou les requêtes vers votre site, vers le service correspondant. Schématiquement, le processus de résolution DNS fonctionne ainsi : (cliquez sur l’image pour l’agrandir) Lorsque vous souscrivez un pack d’hébergement incluant un nom de domaine, les enregistrements sont déjà paramétrés. Mais si vous achetez un nom de domaine seul, ou si vous souhaitez utiliser différents services sur différents types d’hébergements, vous pourrez être amenés à modifier, supprimer ou créer des enregistrements DNS Vous pouvez ainsi faire pointer chaque service lié à votre nom de domaine vers l’endroit de votre choix : Il existe plusieurs types d’entrées (ou enregistrements) DNS. L’enregistrement A (IN A) : À noter :
How to find the installation path for a software under linux? Clean Up the New Ubuntu Grub2 Boot Menu Ubuntu adopted the new version of the Grub boot manager in version 9.10, getting rid of the old problematic menu.lst. Today we look at how to change the boot menu options in Grub2. Grub2 is a step forward in a lot of ways, and most of the annoying menu.lst issues from the past are gone. Still, if you’re not vigilant with removing old versions of the kernel, the boot list can still end up being longer than it needs to be. Note: You may have to hold the SHIFT button on your keyboard while booting up to get this menu to show. Remove Old Kernel Entries The most common clean up task for the boot menu is to remove old kernel versions lying around on your machine. In our case we want to remove the 2.6.32-21-generic boot menu entries. To remove old kernel versions, open up Synaptic Package Manager, found in the System > Administration menu. When it opens up, type the kernel version that you want to remove in the Quick search text field. Remove Any Option by Editing /etc/grub.d sudo update-grub
fish shell Ubuntu Ping Monitor with email alert Advanced Search Results 1 to 6 of 6 Thread: Ubuntu Ping Monitor with email alert Quick Navigation General Help Top « Previous Thread | Next Thread » Bookmarks Posting Permissions You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On [VIDEO] code is Off HTML code is Off Ubuntu Forums Code of Conduct