Sponsored Content
Top Forums Shell Programming and Scripting Unable to create logfile with local time stamp using perl Post 302595923 by krsnadasa on Monday 6th of February 2012 02:00:48 AM
Old 02-06-2012
Thanks a lot Bala,

Simply excelent...
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

time stamp of file create

Hi, Sounds a simple request but I also need (would like) to gather the seconds too. I'm not even sure if this is held. I would think it is, somewhere??!!?! I belive that stat would/could work but I don't do C (we'll not yet). Is there any comamnd line util I can use? SunOS. Cheers... (7 Replies)
Discussion started by: nhatch
7 Replies

2. Shell Programming and Scripting

Perl, time stamp issue. 60th minutes

Hi Guys, Could you tell me how you can get the time stamp for 60th minutes? Currently, we name our file using time stamp upto minutes and then add seconds at the end starting from 01. And when the seconds reaches 60 we simply add 1 to the time stamp and reset the seconds to 00. But the... (3 Replies)
Discussion started by: supaLucas
3 Replies

3. Shell Programming and Scripting

time stamp perl script error out of range 1..31

Hi, while running the perl script i am getting this error message , Day '' out of range 1..31 at rsty.sh line 44 what do iam missing in the script, any suggestion #!/usr/bin/perl use Time::Local; my $wday = $ARGV; my $month = $ARGV; # convert the month shortname into 0-11 number if... (4 Replies)
Discussion started by: saha
4 Replies

4. Shell Programming and Scripting

how to create a logfile to track the below script output

Hi Dudes, Can you please suggest me how to create a logfile to track the below script output ? Thanks #!/bin/ksh # backup the "std" I/P file descriptor exec 5<&0 #echo "Proceed ?" while read config_line; do # backup the I/P file descriptor of "while" block exec 6<&0 # restore the... (2 Replies)
Discussion started by: shirdi
2 Replies

5. UNIX for Dummies Questions & Answers

How to get the next time stamp in perl?

Hi, I have to find the next time stamp in perl. Here is the code. @time = loaltime(time); print "\n Present time: $time:$time:$time \n"; For example if the time is: "12:55:02" after some process the time becomes 1:00:00. How do i check when it becomes 00:00 i.e from "12:55:02... (0 Replies)
Discussion started by: vanitham
0 Replies

6. Shell Programming and Scripting

How to get time duration between two human readable time stamp in Unix?

Here is two time I have: Jul 12 16:02:01 Jul 13 01:02:01 and how can I do a simple match to get difference between two time which is 09:00:00 Thanks in advance. (3 Replies)
Discussion started by: ford99
3 Replies

7. Shell Programming and Scripting

every time user input create array perl

Hi, How to create array every time user input and store user input and display all array print " Enter input " my @input = split(' ', $input) chmop($input = <STDIN>; foreach ($input) { @array= @input; } print @array"\n"; (1 Reply)
Discussion started by: guidely
1 Replies

8. Solaris

System time and Cron time stamp not matching

On Solaris 10 server the system date won't match with the timestamp on files created by a cron jobs, Please help here is what i get when i check for system date infodba-ie10ux014:/tcpdv1_ie10/tcadmin/bin\n\r-> date Tue Apr 24 15:27:43 GMT 2012at same time i executed a cron job, and checked... (4 Replies)
Discussion started by: karghum
4 Replies

9. Programming

CGI Perl script to execute bash script- unable to create folder

Hi I have a bash script which takes parameters sh /tmp/gdg.sh -b BASE-NAME -n 1 -s /source/data -p /dest/data/archive -m ARC gdg.sh will scan the /source/data and will move the contents to /dest/data/archive after passing through some filters. Its working superb from bash I have... (0 Replies)
Discussion started by: rakeshkumar
0 Replies

10. Shell Programming and Scripting

Perl:Script to append date and time stamp

Help with Perl script : I have a web.xml file with a line <display-name>some_text_here</display-name> Need to append the current date and time stamp to the string and save the XML file Something like <display-name>some_text_here._01_23_2014_03_56_33</display-name> -->Finally want... (5 Replies)
Discussion started by: gaurav99
5 Replies
std::back_insert_iterator< _Container >(3)		     Library Functions Manual			std::back_insert_iterator< _Container >(3)

NAME
std::back_insert_iterator< _Container > - SYNOPSIS
Inherits std::iterator< output_iterator_tag, void, void, void, void >. Public Types typedef _Container container_type typedef void difference_type typedef output_iterator_tag iterator_category typedef void pointer typedef void reference typedef void value_type Public Member Functions back_insert_iterator (_Container &__x) back_insert_iterator & operator* () back_insert_iterator & operator++ () back_insert_iterator operator++ (int) back_insert_iterator & operator= (const typename _Container::value_type &__value) back_insert_iterator & operator= (typename _Container::value_type &&__value) Protected Attributes _Container * container Detailed Description template<typename _Container>class std::back_insert_iterator< _Container > Turns assignment into insertion. These are output iterators, constructed from a container-of-T. Assigning a T to the iterator appends it to the container using push_back. Tip: Using the back_inserter function to create these iterators can save typing. Definition at line 402 of file stl_iterator.h. Member Typedef Documentation template<typename _Container > typedef _Container std::back_insert_iterator< _Container >::container_type A nested typedef for the type of whatever container you used. Definition at line 410 of file stl_iterator.h. typedef void std::iterator< output_iterator_tag , void , void , void , void >::difference_type [inherited] Distance between iterators is represented as this type. Definition at line 125 of file stl_iterator_base_types.h. typedef output_iterator_tag std::iterator< output_iterator_tag , void , void , void , void >::iterator_category [inherited] One of the tag types. Definition at line 121 of file stl_iterator_base_types.h. typedef void std::iterator< output_iterator_tag , void , void , void , void >::pointer [inherited] This type represents a pointer-to-value_type. Definition at line 127 of file stl_iterator_base_types.h. typedef void std::iterator< output_iterator_tag , void , void , void , void >::reference [inherited] This type represents a reference-to-value_type. Definition at line 129 of file stl_iterator_base_types.h. typedef void std::iterator< output_iterator_tag , void , void , void , void >::value_type [inherited] The type 'pointed to' by the iterator. Definition at line 123 of file stl_iterator_base_types.h. Constructor &; Destructor Documentation template<typename _Container > std::back_insert_iterator< _Container >::back_insert_iterator (_Container &__x) [inline], [explicit] The only way to create this iterator is with a container. Definition at line 414 of file stl_iterator.h. Member Function Documentation template<typename _Container > back_insert_iterator& std::back_insert_iterator< _Container >::operator* () [inline] Simply returns *this. Definition at line 452 of file stl_iterator.h. template<typename _Container > back_insert_iterator& std::back_insert_iterator< _Container >::operator++ () [inline] Simply returns *this. (This iterator does not move.) Definition at line 457 of file stl_iterator.h. template<typename _Container > back_insert_iterator std::back_insert_iterator< _Container >::operator++ (int) [inline] Simply returns *this. (This iterator does not move.) Definition at line 462 of file stl_iterator.h. template<typename _Container > back_insert_iterator& std::back_insert_iterator< _Container >::operator= (const typename _Container::value_type &__value) [inline] Parameters: __value An instance of whatever type container_type::const_reference is; presumably a reference-to-const T for container<T>. Returns: This iterator, for chained operations. This kind of iterator doesn't really have a position in the container (you can think of the position as being permanently at the end, if you like). Assigning a value to the iterator will always append the value to the end of the container. Definition at line 436 of file stl_iterator.h. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Jun 10 2014 std::back_insert_iterator< _Container >(3)
All times are GMT -4. The time now is 11:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy