The best you can do with csh is something like (as rm is the strong and silent type on success this is a little over the top, but for commands where you still want to capture stdout on your terminal, you need this...)
A reason to use a bourne-based shell, methinks....
Clean and elegant....
I am trying to run the script bellow but its given me "syntax error at line 20 :'done' unexpected." error message"
can someone check to see if the script is ok? and correct me pls.
Today is my first day with scripting.
Gurus should pls help out
#!/bin/ksh
# Purpose: Check to see if file... (3 Replies)
Discussion started by: ibroxy
3 Replies
2. Forum Support Area for Unregistered Users & Account Problems
Hi all,
I am trying to register but it seems my IP address is being seen or black listed as a spam address.
I get the following message:
"Registration denied. Sorry, The UNIX and Linux Forums runs an active policy of not allowing spammers. Please contact us via by posting in this forum if... (0 Replies)
The operating system is Solaris. There is a perl interpreter that is located at /opt/perl5.10.0/perl. when i give
ls -ltr /opt/perl5.10.0/perl
I get an error message saying that "/opt/perl5.10.0/perl Not a directory"
At the next instant when i give the same command it lists the properties of... (5 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this:
$ look "string" "/home/patrick/filename.txt"
However, this gives me the following message:
"look: /home/patrick/filename.txt: File too large"
So, I have two... (14 Replies)
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
We are having issues with our Postfix. The POP and IMAP services randomly stops working an sent e-mails return a "Command time limit exceeded".
We've found out that running these command fix the problem:
service cyrus-imapd stop
rm /var/lib/imap/tls_sessions.db*
rm... (2 Replies)
Discussion started by: GustavoAlvarado
2 Replies
LEARN ABOUT OPENSOLARIS
msgget
msgget(1) User Commands msgget(1)NAME
msgget - get a message from a message catalog
SYNOPSIS
msgget locale [command:]catalog [set.]number [text]
DESCRIPTION
msgget gets the message corresponding to the parameters. See OPERANDS.
OPERANDS
The following operands are supported:
catalog Specifies the message catalog name.
command Specifies command-specific message.
locale Specifies the locale. If locale is - then the current locale is used.
[set].number Identifies the message by message number and an optional message set. If specified as - , the message set and number are
determined by looking up text in the corresponding C locale message catalog.
text Specifies the text of the message to be output upon error.
EXIT STATUS
0 Successful completion.
>0 An error occurred.
EXAMPLES
Example 1 Getting a Message in the Current Locale
The following example gets msg 1 in the current locale from message catalog hello:
example% msgget - hello 1
hello world
AUTHORS
Glenn Fowler, gsf@research.att.com
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWastdev |
+-----------------------------+-----------------------------+
|Interface Stability |Volatile |
+-----------------------------+-----------------------------+
SEE ALSO iconv(1), msgcc(1), msggen(1), attributes(5)SunOS 5.11 9 Oct 2007 msgget(1)