Sponsored Content
Top Forums Shell Programming and Scripting Can we edit crontab using a shell script Post 302325820 by STOIE on Tuesday 16th of June 2009 08:45:29 AM
Old 06-16-2009
Okay, kool...

Thanks for your help Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Can't edit crontab

I saw a post on here a while back describing how to edit a crontab file when I'm not able to edit it via crontab -e. Currently, if I try to do a crontab -e, it just comes back with: # crontab -e 7987 <and then it just hangs there FOREVER> If I do a crontab -l, it shows me all of the... (1 Reply)
Discussion started by: FredSmith
1 Replies

2. Shell Programming and Scripting

edit crontab without -e

hi i need to change crontab settings as minute,hour,day of month,month year,day of week certain times. for that i need to go as crontab -e. i want to avoid that as its creating many problems in mysystem. so here i m planning/trying to write a script that will update the settings in crontab... (8 Replies)
Discussion started by: d_swapneel14
8 Replies

3. UNIX for Dummies Questions & Answers

Edit Crontab

Hi I am new to Unix and would like some assistance. I need to edit the crontab file so that a script is set to run at 3:00 am each day. When I telnet to the sun server and type crontab -e a black screen appears and I am unable to make any changes. Could you advice on what is needed to... (11 Replies)
Discussion started by: juliet
11 Replies

4. Shell Programming and Scripting

shell script to edit the content of a file

Hi I need some help using shell script to edit a file. My original file has the following format: /txt/email/myemail.txt /txt/email/myemail2.txt /pdf/email/myemail.pdf /pdf/email/myemail2.pdf /doc/email/myemail.doc /doc/email/myemail2.doc I need to read each line. If the path is... (3 Replies)
Discussion started by: tiger99
3 Replies

5. Shell Programming and Scripting

Need help in a shell script to edit a tablespace creation script.

Hi, CREATE TABLESPACE aps_blob_large01 DATAFILE '/c2r6u13/u03/oradata/qnoldv01/aps_blob_large0101.dbf' SIZE X 270532608 REUSE DEFAULT STORAGE (INITIAL 134217728 NEXT... (2 Replies)
Discussion started by: rparavastu
2 Replies

6. Shell Programming and Scripting

edit columns in unix shell script

i have a file which if you will open as xls will yield something like this: Column1 Column2 Column3 ABC CDE EFG GHI IJK KLM MNO OPQ QRS what i want to need is to have this kind of results: Column1 ABC CDE EFG GHI IJK ... (10 Replies)
Discussion started by: kingpeejay
10 Replies

7. Shell Programming and Scripting

Shell script to edit a file

Hello, I have a big file in wich I would like to rename inside this exactly the string '_ME' and not rename in case we have 'ABC_MELANGE'. Is there a way to do it by using a shell script? Any tip will be apreciated. The file is like described bellow, after using command more filename : ... (3 Replies)
Discussion started by: Titas
3 Replies

8. Shell Programming and Scripting

shell script to edit a file

i have a file called number which contains data as 1 2 3 4 5 6 7 8 9 0 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 needed a shell script to print the output as 1 7 7 1 4 and (2 Replies)
Discussion started by: jacky29
2 Replies

9. Homework & Coursework Questions

Edit the file in shell script

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I am trying to automate hadoop installation procedure using shell script. It involves go to perticular directory... (3 Replies)
Discussion started by: Abdul Navaz
3 Replies

10. Shell Programming and Scripting

Can't edit my Crontab

Hi, I m setting up my crontab for the very first time. I m a non-root user and this is linux $ export EDITOR=vi $ crontab -e no crontab for user1 - using an empty one crontab: installing new crontab "/tmp/crontab.uW0JNx":1: bad command errors in crontab file, can't install. Do you want... (3 Replies)
Discussion started by: mohtashims
3 Replies
Data::Stream::Bulk(3pm) 				User Contributed Perl Documentation				   Data::Stream::Bulk(3pm)

NAME
Data::Stream::Bulk - N at a time iteration API VERSION
version 0.11 SYNOPSIS
# get a bulk stream from somewere my $s = Data::Stream::Bulk::Foo->new( ... ); # can be used like this: until ( $s->is_done ) { foreach my $item ( $s->items ) { process($item); } } # or like this: while( my $block = $s->next ) { foreach my $item ( @$block ) { process($item); } } DESCRIPTION
This module tries to find middle ground between one at a time and all at once processing of data sets. The purpose of this module is to avoid the overhead of implementing an iterative api when this isn't necessary, without breaking forward compatibility in case that becomes necessary later on. The API optimizes for when a data set typically fits in memory and is returned as an array, but the consumer cannot assume that the data set is bounded. The API is destructive in order to minimize the chance that resultsets are leaked due to improper usage. API
Required Methods The API requires two methods to be implemented: is_done Should return true if the stream is exhausted. As long as this method returns a false value (not done) "next" could potentially return another block. next Returns the next block. Note that "next" is not guaranteed to return an array reference, even if "is_done" returned false prior to calling it. Convenience Methods items This method calls "next" and dereferences the result if there are pending items. all Force evaluation of the entire resultset. Note that for large data sets this might cause swap thrashing of various other undesired effects. Use with caution. cat @streams Concatenates this stream with @streams, returning a single stream. list_cat @tail Returns a possibly cleaned up list of streams. Used by "cat". Overridden by Data::Stream::Bulk::Array, Data::Stream::Bulk::Cat and Data::Stream::Bulk::Nil to implement some simple short circuiting. filter $filter Applies a per-block block filter to the stream. Returns a possibly new stream with the filtering layered. $filter is invoked once per block and should return an array reference to the filtered block. chunk $chunk_size Chunks the input stream so that each block returned by "next" will have at least $chunk_size items. loaded Should be overridden to return true if all the items are already realized (e.g. in the case of Data::Stream::Bulk::Array). Returns false by default. When true calling "all" is supposed to be safe (memory usage should be in the same order of magnitude as stream's own usage). This is typically useful when tranforming an array is easier than transorming a stream (e.g. optional duplicate filtering). CLASSES
Data::Stream::Bulk::Array This class is not a stream at all, but just one block. When the data set easily fits in memory this class can be used, while retaining forward compatibility with larger data sets. Data::Stream::Bulk::Callback Callback driven iteration. Data::Stream::Bulk::Chunked Wrapper to return larger blocks from an existing stream. Data::Stream::Bulk::DBI Bulk fetching of data from DBI statement handles. Data::Stream::Bulk::DBIC DBIx::Class::ResultSet iteration. Data::Stream::Bulk::FileHandle Iterates over lines in a text file. Data::Stream::Bulk::Nil An empty result set. Data::Stream::Bulk::Cat A concatenation of several streams. Data::Stream::Bulk::Filter A filter wrapping a stream. SEE ALSO
HOP::Stream, Iterator, Class::Iterator etc for one by one iteration DBI, DBIx::Class::ResultSet POE::Filter Data::Page Parallel::Iterator <http://en.wikipedia.org/wiki/MapReduce>, LISP, and all that other kool aid TODO
Sorted streams Add a hint for sorted streams (like "loaded" but as an attribute in the base role). Introduce a "merge" operation for merging of sorted streams. Optimize "unique" to make use of sorting hints for constant space uniquing. More utility functions To assist in proccessing and creating streams. Coercion tables Moose::Util::TypeConstraints VERSION CONTROL
This module is maintained using git. You can get the latest version from http://github.com/nothingmuch/data-stream-bulk/ <http://github.com/nothingmuch/data-stream-bulk/>. AUTHOR
Yuval Kogman <nothingmuch@woobling.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Yuval Kogman. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-02-14 Data::Stream::Bulk(3pm)
All times are GMT -4. The time now is 11:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy