PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.unix.shell > Redirect output with time?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

Redirect output with time?

Réponse
 
LinkBack Outils de la discussion
Vieux 25/07/2007, 14h25   #1
T
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Redirect output with time?

Greetings:

I need to time a number of makes using "time" (or "gtime"), but would
like to redirect the output of "time" to a file. The make output can
still go to the screen.
Does anyone know how to do this? I've tried:

gtime -v make -f MakeTest20 1> 20.log

and different variants.

Thanks for any in advance!

Tom

  Réponse avec citation
Vieux 25/07/2007, 15h51   #2
Icarus Sparry
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Redirect output with time?

On Wed, 25 Jul 2007 06:25:10 -0700, T wrote:

> Greetings:
>
> I need to time a number of makes using "time" (or "gtime"), but would
> like to redirect the output of "time" to a file. The make output can
> still go to the screen.
> Does anyone know how to do this? I've tried:
>
> gtime -v make -f MakeTest20 1> 20.log
>
> and different variants.
>
> Thanks for any in advance!
>
> Tom


"time" is a builtin command to bash, which makes it slightly different to
usual.

( time make -f MakeTest20 ) 2> 20.log

works for me.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 22h18.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07793 seconds with 10 queries