Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.4.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 Scilab >> Entrées/Sorties > unix_w

unix_w

exécution d'une commande Unix ou DOS, sortie redirigée vers la fenêtre de Scilab

Séquence d'appel

unix_w(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 cmd.com sous Windows). La sortie standard et les erreurs sont reportées dans la variable rep. Les erreurs se produisant dans l'interpréteur de commande sont interceptées; 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_w("dir "+'""'+WSCI+"\modules"+'""');
else
  unix_w("ls $SCI/modules");
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_s — exécution d'une commande Unix ou DOS, pas de sortie
  • 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_s Entrées/Sorties unix_x >>

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:
Mon Oct 01 17:37:22 CEST 2012