Sponsored Content
Top Forums Shell Programming and Scripting Unwanted Error Message on Screen Post 88270 by RTM on Wednesday 2nd of November 2005 01:50:31 PM
Old 11-02-2005
Why not just use something like this?
Code:
set yourfile="/path/to/yourfile"
if (-e $yourfile) then
 # do something if it exist
else
 # do something if it does not exist
endif

Check the man page for csh for other options.

csh bashers - Smilie
 

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Display message on screen and flat file at same time

Hi guys, I have a script that call another, the other displays de message and I can print directly to the flat file, but in one command I am searchig that this message can be displayed in the screen and in the flat file in one command. I am doing something like this: var=$(./Example.sh)... (2 Replies)
Discussion started by: pipoca
2 Replies

2. AIX

AIX power problem cron message on screen

Hello, I keep getting this message even after i removed it from the cron enteries it was added automatically Broadcast message from root@oradb (tty) at 12:00:00 ... rc.powerfail:2::WARNING!!! The system is now operating with a power problem. This message will be walled every 12... (2 Replies)
Discussion started by: filosophizer
2 Replies

3. Red Hat

command line tool to disable screen lock and/or screen saver

Hi, I have a simple question : how to disable screen lock and/or sreen saver with command line with RHEL5.4 ? (1 Reply)
Discussion started by: albator1932
1 Replies

4. Shell Programming and Scripting

Getting phone number, its message and assigning them into 2 variables then screen output.

Hi Everyone, I have a flatfile "inbox.txt" which contains some information: Location 0, folder "Inbox", SIM memory, Inbox folder SMS message SMSC number : "+24800000023" Sent : Sat 04 Aug 2012 09:01:00 PM +0700 Coding : Default GSM alphabet... (5 Replies)
Discussion started by: testcase
5 Replies

5. UNIX for Dummies Questions & Answers

Accidentally made a screen within a screen - how to move it up one level?

I made a screen within a screen. Is there a way to move the inner screen up one level so that it is at the same level as the first screen running from the shell? (2 Replies)
Discussion started by: phpchick
2 Replies
Mail::Message::Convert::MailInternet(3pm)		User Contributed Perl Documentation		 Mail::Message::Convert::MailInternet(3pm)

NAME
Mail::Message::Convert::MailInternet - translate Mail::Message to Mail::Internet vv INHERITANCE
Mail::Message::Convert::MailInternet is a Mail::Message::Convert is a Mail::Reporter SYNOPSIS
use Mail::Message::Convert::MailInternet; my $convert = Mail::Message::Convert::MailInternet->new; my Mail::Message $msg = Mail::Message->new; my Mail::Internet $intern = $convert->export($msg); my Mail::Internet $intern = Mail::Internet->new; my Mail::Message $msg = $convert->from($intern); use Mail::Box::Manager; my $mgr = Mail::Box::Manager->new; my $folder = $mgr->open(folder => 'Outbox'); $folder->addMessage($intern); DESCRIPTION
The Mail::Internet class of messages is very popular for all kinds of message applications written in Perl. However, the format was developed when e-mail messages where still small and attachments where rare; Mail::Message is much more flexible in this respect. Converters between message objects Other converters METHODS
Constructors Mail::Message::Convert::MailInternet->new(OPTIONS) See "METHODS" in Mail::Message::Convert Converting $obj->export(MESSAGE, OPTIONS) Returns a new message object based on the information from a Mail::Message object. The MESSAGE specified is an instance of a Mail::Message. example: my $convert = Mail::Message::Convert::MailInternet->new; my Mail::Message $msg = Mail::Message->new; my Mail::Internet $copy = $convert->export($msg); $obj->from(OBJECT, OPTIONS) Returns a new Mail::Message object based on the information from a Mail::Internet object. example: my $convert = Mail::Message::Convert::MailInternet->new; my Mail::Internet $msg = Mail::Internet->new; my Mail::Message $copy = $convert->from($msg); $obj->selectedFields(HEAD) See "Converting" in Mail::Message::Convert Error handling $obj->AUTOLOAD() See "Error handling" in Mail::Reporter $obj->addReport(OBJECT) See "Error handling" in Mail::Reporter $obj->defaultTrace([LEVEL]|[LOGLEVEL, TRACELEVEL]|[LEVEL, CALLBACK]) Mail::Message::Convert::MailInternet->defaultTrace([LEVEL]|[LOGLEVEL, TRACELEVEL]|[LEVEL, CALLBACK]) See "Error handling" in Mail::Reporter $obj->errors() See "Error handling" in Mail::Reporter $obj->log([LEVEL [,STRINGS]]) Mail::Message::Convert::MailInternet->log([LEVEL [,STRINGS]]) See "Error handling" in Mail::Reporter $obj->logPriority(LEVEL) Mail::Message::Convert::MailInternet->logPriority(LEVEL) See "Error handling" in Mail::Reporter $obj->logSettings() See "Error handling" in Mail::Reporter $obj->notImplemented() See "Error handling" in Mail::Reporter $obj->report([LEVEL]) See "Error handling" in Mail::Reporter $obj->reportAll([LEVEL]) See "Error handling" in Mail::Reporter $obj->trace([LEVEL]) See "Error handling" in Mail::Reporter $obj->warnings() See "Error handling" in Mail::Reporter Cleanup $obj->DESTROY() See "Cleanup" in Mail::Reporter $obj->inGlobalDestruction() See "Cleanup" in Mail::Reporter DIAGNOSTICS
Error: Package $package does not implement $method. Fatal error: the specific package (or one of its superclasses) does not implement this method where it should. This message means that some other related classes do implement this method however the class at hand does not. Probably you should investigate this and probably inform the author of the package. SEE ALSO
This module is part of Mail-Box distribution version 2.105, built on May 07, 2012. Website: http://perl.overmeer.net/mailbox/ LICENSE
Copyrights 2001-2012 by [Mark Overmeer]. For other contributors see ChangeLog. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html perl v5.14.2 2012-05-07 Mail::Message::Convert::MailInternet(3pm)
All times are GMT -4. The time now is 02:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy