Sponsored Content
Top Forums Shell Programming and Scripting Setting rate of execution using while Post 302639571 by Baduizm on Saturday 12th of May 2012 06:24:33 AM
Old 05-12-2012
Setting rate of execution using while

What can I use to echo current date 1000 times once every second, redirect this output to a file,and then use tail to monitor growth of the file?
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

rate of process

How can I determine if the data collection rate is 1 Hz on Solaris? (0 Replies)
Discussion started by: laila63
0 Replies

2. Programming

POSIX method for setting arbitrary (nonstandard) baud rate?

I have a USB serial adapter that supports arbitrary baud rates. To set a nonstandard rate in code, I'd been using the TIOCGSERIAL like so: struct serial_struct ser_info; ioctl(ser_dev, TIOCGSERIAL, &ser_info); ser_info.flags = ASYNC_SPD_CUST | ASYNC_LOW_LATENCY; ser_info.custom_divisor... (1 Reply)
Discussion started by: cmb
1 Replies

3. Shell Programming and Scripting

Expect Issue Serial Forground Execution vs Concurrent Background Execution

I have an expect script that interrogates several hundred unix servers for both access and directories therein using "ssh user@host ls -l /path". The combination of host/path are unique but the host may be interrogated multiple times if there are multiple paths to test. The expect script is run... (2 Replies)
Discussion started by: twk
2 Replies

4. AIX

Paging Rate

Hi Friends, Can you please answer the following questions. 1) What is Paging rate ? 2) How to Calculate Paging rate from the following topas command output? Faults 206 Real,MB 28671 Steals 311 % Comp 71.1 PgspIn 1 % Noncomp 28.8 ... (3 Replies)
Discussion started by: deshaipet
3 Replies

5. UNIX for Dummies Questions & Answers

Transfer Rate Disk

hi guys I have a linux server which has about 5 volumes from SAN (fiber channel) now I need to measure the transfer rate between one LUN which is a Logical Volume to another LUN which is another Logical Volume. so basically this server has 5 LUNs from SAN each SAN volume is a logical volume... (3 Replies)
Discussion started by: karlochacon
3 Replies

6. Shell Programming and Scripting

Need help in controling execution rate of script in shell

I want to control the speed of execution of a script, There are 1000 lines in script, i want 100 lines to be executed in 10 seconds and from 11th second execution from 101 line should start, again so on. Please help me in creating the script. Thanks, cmaniar (1 Reply)
Discussion started by: cmaniar
1 Replies

7. AIX

Scan Rate

Hello, How can i tell ifthe ratio between fr and sr is ok? is fr/sr ratio of 0.9 acceptable? thanks. (1 Reply)
Discussion started by: LiorAmitai
1 Replies

8. Shell Programming and Scripting

How can I get the increased rate in MB?

Deal all, I have a directory called I want to know how many MBs are transferred to it every 2 hours. How can I do this? Any ideas? I have a simple idea but I can't translate it into shell script, the idea is: 1- get the size of the folder now, using 2- then get the size of the... (4 Replies)
Discussion started by: Mohannad
4 Replies
DATETIME.SETDATE(3)							 1						       DATETIME.SETDATE(3)

DateTime::setDate - Sets the date

       Object oriented style

SYNOPSIS
public DateTime DateTime::setDate (int $year, int $month, int $day) DESCRIPTION
Procedural style DateTime date_date_set (DateTime $object, int $year, int $month, int $day) Resets the current date of the DateTime object to a different date. PARAMETERS
o $object -Procedural style only: A DateTime object returned by date_create(3). The function modifies this object. o $year - Year of the date. o $month - Month of the date. o $day - Day of the date. RETURN VALUES
Returns the DateTime object for method chaining or FALSE on failure. CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 5.3.0 | | | | | | | Changed the return value on success from NULL to | | | DateTime. | | | | +--------+---------------------------------------------------+ EXAMPLES
Example #1 DateTime.setDate(3) example Object oriented style <?php $date = new DateTime(); $date->setDate(2001, 2, 3); echo $date->format('Y-m-d'); ?> Procedural style <?php $date = date_create(); date_date_set($date, 2001, 2, 3); echo date_format($date, 'Y-m-d'); ?> The above examples will output: 2001-02-03 Example #2 Values exceeding ranges are added to their parent values <?php $date = new DateTime(); $date->setDate(2001, 2, 28); echo $date->format('Y-m-d') . " "; $date->setDate(2001, 2, 29); echo $date->format('Y-m-d') . " "; $date->setDate(2001, 14, 3); echo $date->format('Y-m-d') . " "; ?> The above example will output: 2001-02-28 2001-03-01 2002-02-03 SEE ALSO
DateTime.setISODate(3), DateTime.setTime(3). PHP Documentation Group DATETIME.SETDATE(3)
All times are GMT -4. The time now is 10:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy