|
Can this be done with standard means?
Started by Kuroki Kaze on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The best would:
@....
time is: 10:32:05.94 Enter the new time:
If you have a command window open and call the commands
you can calculate the execution time for each command by the time info in the prompt.
|
|
Is is possible to print the execution time of a shell command with following combination?
root@hostname:~# "command to execute" && echo "execution time"
Started by jack on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You could....
time is a built-in command in most shells that writes execution time information to the tty.
Root@hostname:~# time [command]
It also distinguishes between real time used and system time used.
|
|
I'm looking for an easy way to track time I work on a project using the command line. I do
echo "$(date) : Start" >>worktime.txt
When I start working and
echo "$(date) : End" >>worktime.txt
When I stop working. The result is a file of the ...
Started by Kent on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Wilhelmtell has a great script, if you need to use .
") | getline end_secs total_secs += (end_secs - start_secs) } END { print "Total work time of " total specifies an alternative time/date, instead of now .
|
Ask your Facebook Friends
|
Is there any built-in linux command that allows to output a string that is n times an input string??
Started by GetFree on
, 6 posts
by 5 people.
Answer Snippets (Read the full thread at superuser):
Python >>>var = "string" >>>var*n
Perhaps....
Adrian@Fourier:~$ printf 'HelloWorld\n%.0s' {1..5} HelloWorld HelloWorld HelloWorld HelloWorld HelloWorld adrian@Fourier:~$
Not exactly built in to linux, but if you have python installed. .
|
|
Possible Duplicate:
How do I get ‘real-time’ information back from a subprocess.Popen in python (2.5)
To get the output on UNIX platform in python, I use commands.getoutput('ls')
But this gives me output after the commands has finished executing. For ...
Started by Shadyabhi on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
#!....
This will execute the command and print out the output in real time to the shell.
What you want is the subprocess.call method.
You must make your external command.
Pipe-like interface which you can read as the data comes in .
|
|
What is the easiest/quickest way to time a command in DOS?
It doesn't have to be super accurate (+/- seconds is okay) since I expect this to take minutes or even 1 hour+. And writing a batch file is fine too. Also, it doesn't need to do calculations on...
Started by slolife on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at superuser):
This is very handy for command line scripts that you want to keep track of in log files! Success Mon Mar 06 21:47:01 ....
I am usually using
echo.|time & my_command & echo.|time
when I have nothing else at hand and time.
|
|
What command line applications can I use on OS X to get the movie running time? I would like to be able to do something like this:
$ running_time matrix.avi 136 min
Started by Maciej Konieczny on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
FFMpeg:
ffmpeg -i foo.avi ffmpeg -i foo.avi 2>&1 | grep Duration
Mplayer/Mencoder .
For a suggestion.) Once you've got that, you can create a shell script or alias to run that command with running_time .
|
|
Quick question.
If I run a php script from the command-line (through a cron job, "php ./somwthing-sync.php"), am I still bounded to the php max_execution_time and memory_limit?
Thanks
Nathan
Started by nute on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The....
If you look at the doc , its says
max_execution_time integer This sets the maximum time in seconds a script is allowed up the server.
To ghostdog, the time limit is removed, but my guess is the memory limit is till in place.
|
|
How do I execute a command every time after ssh'ing from one machine to another?
e.g
ssh mymachine stty erase ^H
I'd rather just have "stty erase ^H" execute every time after my ssh connection completes.
This command can't simply go into my .zshrc file...
Started by someguy on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Do you want this command.
It should be exited upon logoff.
The command below the end of your ~/.bashrc.
|
|
Is there a way to embed the last command's elapsed wall time in a Bash prompt? I'm hoping for something that would look like this:
[last: 0s][/my/dir]$ sleep 10 [last: 10s][/my/dir]$
Background
I often run long data-crunching jobs and it's useful to know...
Started by Mr Fooz on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
That ensures that the time displayed is the command run time, rather than the time since the lastWill putting a \t in PS1 work for you?
It does not give the elapsed time but it should be easy of bash, you can set the....
|