I have a file in which email messages are stored in. Every email is separated by by a ^Z character (Control-Z).
I need to extract all emails after the 65,00th one to another file and delete them from the original file.
Any suggests on accomplishing this? (2 Replies)
I'm debugging a ksh script written by someone else that does the following:
It runs a command and redirects stdout to a file called dberror that already exists using ">". This command fails with the following error:
The file access permissions do not allow the specified action. dberror:... (1 Reply)
Hello,
I'm trying the solve the following problem.
I have a file which I intend to use as a csv called master.csv
The columns are separated by commas.
I want to change the text on a specific row in either column 3,4,5 or 6 from xxx to yyy depending upon if column 1 matches a specified pattern.... (3 Replies)
ENVIROMENT
Linux: Fedora Core release 1 (Yarrow)
iPlanet: iPlanet-WebServer-Enterprise/6.0SP1
Log Path: /usr/iplanet/servers/https-company/logs
I have iPlanet log rotation enabled rotating files on a daily basis.
The rotated logs are NOT compressed & are taking up too much space.
I... (7 Replies)
Hello All,
I had just a question about my Bash Script I'm currently writing.
The script I have writes some text to a output file. After I write to the output file I send the file to another server to do
some stuff with it.
After the file sends in the script, I don't need the output/txt... (4 Replies)
I have 2 TXT files with with 8 columns in them(tab separated). First file has 2000 entries whereas 2nd file has 300 entries.
The first file has ALL the lines of second file. Now I need to remove those 300 lines (which are in both files) from first file so that first file's line count become... (2 Replies)
I have ssh password less auth enable & script does the job well as well
#/bin/bash
for i in `cat ip`
do
scp /etc/resolv.conf root@$ip
done
But I need to take backup of the file i will overwrite .. is there any simple way ?
Kindly respond (5 Replies)
Hi Folks,
I am a novice and need to build a script in bash. I have 2 text files data.txt file is big file, column 2 is the we need to search and delete in the output. The filter file contains the rows to be deleted.
Data.txt
state city zone
Alabama Huntsville 4
California SanDiego 3... (3 Replies)
ENVIROMENT
Linux: RHEL 6.4
Log Path: /usr/iplanet/servers/https-company/logs
Log Format: user.log.03-15-2015
I have log4j log rotation enabled rotating files on a daily basis.
The rotated logs are NOT compressed & are taking up too much space.
I need a script that will run daily that... (1 Reply)
Hi All,
Do you have any sample script,
- auto get file from SFTP remote server and delete file in remove server after downloaded.
- only download specify filename
- auto upload file from local to SFTP remote server and delete local folder file after uploaded
- only upload specify filename
... (3 Replies)
Discussion started by: weesiong
3 Replies
LEARN ABOUT DEBIAN
jifty::action::record
Jifty::Action::Record(3pm) User Contributed Perl Documentation Jifty::Action::Record(3pm)NAME
Jifty::Action::Record -- An action tied to a record in the database.
DESCRIPTION
Represents a web-based action that is a create, update, or delete of a Jifty::Record object. This automatically populates the arguments
method of Jifty::Action so that you don't need to bother.
To actually use this class, you probably want to inherit from one of Jifty::Action::Record::Create, Jifty::Action::Record::Update, or
Jifty::Action::Record::Delete. You may need to override the "record_class" method, if Jifty cannot determine the record class of this
action.
METHODS
record
Access to the underlying Jifty::Record object for this action is through the "record" accessor.
record_class
This method can either be overridden to return a string specifying the name of the record class, or the name of the class can be passed to
the constructor.
report_detailed_messages
If the action returns true for "report_detailed_message", report the message returned by the model classes as the resulting message. For
Update actions, Put the per-field message in "detailed_messages" field of action result content. The default is false.
new PARAMHASH
Construct a new "Jifty::Action::Record" (as mentioned in Jifty::Action, this should only be called by "framework->new_action". The
"record" value, if provided in the PARAMHASH, will be used to load the "record"; otherwise, the primary keys will be loaded from the
action's argument values, and the "record" loaded from those primary keys.
arguments
Overrides the "arguments" in Jifty::Action method, to automatically provide a form field for every writable attribute of the underlying
"record".
This also creates built-in validation and autocompletion methods (validate_$fieldname and autocomplete_$fieldname) for action fields that
are defined "validate" or "autocomplete". These methods can be overridden in any Action which inherits from this class.
Additionally, if our model class defines canonicalize_, validate_, or autocomplete_ FIELD, generate appropriate an appropriate
canonicalizer, validator, or autocompleter that will call that method with the value to be validated, canonicalized, or autocompleted.
"validate_FIELD" should return a (success boolean, message) list.
"autocomplete_FIELD" should return a the same kind of list as Jifty::Action::_autocomplete_argument
"canonicalized_FIELD" should return the canonicalized value.
possible_columns
Returns the list of columns objects on the object that the action can update. This defaults to all of the "containers" or the
non-"private", non-"virtual" and non-"serial" columns of the object.
possible_fields
Returns the list of the "possible_columns"' names.
Usually at the end names are required, however for subclassing column objects are better, or this method in a subclass turns out to be "map
to column" - "filter" - "map to name" chain.
take_action
Throws an error unless it is overridden; use Jifty::Action::Record::Create, ::Update, or ::Delete
SEE ALSO
Jifty::Action, Jifty::Record, Jifty::DBI::Record, Jifty::Action::Record::Create, Jifty::Action::Record::Update,
Jifty::Action::Record::Delete
LICENSE
Jifty is Copyright 2005-2010 Best Practical Solutions, LLC. Jifty is distributed under the same terms as Perl itself.
perl v5.14.2 2011-02-21 Jifty::Action::Record(3pm)