LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 05-29-2007, 08:12 AM   #1
jeff12300
LQ Newbie
 
Registered: May 2007
Posts: 1

Rep: Reputation: 0
Problem with shell command time in FC6


Hello,

I tried to use the command time in order to have the execution time of a shell script but I cant do anything with the output. I use a FC6.
I tried the following
#time myscript.sh > fic_result 2>fic_time

but it doesnt log anything in fic_time
I beleive it was the stderr? so how to get the result of the time command in a file?

If not possible, how to mesure the execution time of a shell?

Thx in advance
jeff.
 
Old 05-29-2007, 08:46 AM   #2
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 31
Assuming that the # is your shell prompt, try this:

Code:
#(time myscript.sh) > fic_result 2> fic_time
Hope this helps.

Last edited by wjevans_7d1@yahoo.co; 05-29-2007 at 09:00 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shell scripting problem, sed command kamkos Linux - General 5 03-31-2007 10:39 PM
Can't seem to run a simple shell script error command not found each time SimonT Linux - Newbie 5 10-29-2006 07:31 AM
Shell-script should control a piped command -> PROBLEM waldese Linux - General 8 09-29-2006 04:27 AM
problem with the shell command "find zosimus Linux - Software 7 06-14-2005 05:28 PM
Shell Command Problem Godboo Linux - Newbie 5 01-08-2004 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 02:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration