Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.0 - Français

Change language to:
English - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Aide de Scilab >> Entrées/Sorties > unix_s

unix_s

exécution d'une commande Unix ou DOS, pas de sortie

Séquence d'appel

unix_s(command-name)

Paramètres

command-name

chaîne de caractères

Description

Envoie la chaîne command-name à l'interpréteur de commande (sh sous Unix, ou command.com sous DOS). La sortie standard et les erreurs ne sont pas reportées (redirection vers /dev/null sous Unix).

Notez que la *dernière erreur uniquement* est signalée quand command-name est une suite de commandes séparées par des ";".

Exemples

if getos() == 'Windows' then
  unix_s("del foo");
else
  unix_s("rm -f foo");
end

Voir aussi

  • edit — function editing
  • manedit — editing a manual item
  • unix_g — exécution d'une commande Unix ou DOS, sortie redirigée vers une variable
  • unix_w — exécution d'une commande Unix ou DOS, sortie redirigée vers la fenêtre de Scilab
  • unix_x — exécution d'une commande Unix ou DOS, sortie redirigée vers une fenêtre
  • unix — exécution d'une commande Unix ou DOS
Report an issue
<< unix_g Entrées/Sorties unix_w >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Feb 14 15:06:37 CET 2017