01-03-2013
Hi Don Cragun
As I corrected my self I did not see the vxfs type of message. I thought he wanted to redirect the error message that was already correct with "2>"
The "&>" does something that is redirecting both stdout and sderr the the file, but was a bad answer cause it did not help with the problem at all, sorry.
Last edited by Ikaro0; 01-03-2013 at 02:24 PM..
Reason: Syntax
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to create a shell script having the menu with few options such as
1. Listing 2. Change permissions 3. Modify Contents 4. Delete Files 5. Exit
1. For 1. Listing: Display a special listing of files showing their date of modification and access time (side by side) along with their... (2 Replies)
Discussion started by: bab123
2 Replies
2. Shell Programming and Scripting
Hi ,
Is there any way to achieve following using perl program (i.e without using system command).
1.system ("echo 'test' > /usr/spool/ship.csv");
2.system ("cat /usr/ajay_test* >> /usr/spool/RAM/work/patil.csv");
3.system("> /usr/spool/ajay.txt");
e.g
for system("rm -f... (1 Reply)
Discussion started by: ajaypatil_am
1 Replies
3. UNIX for Advanced & Expert Users
Hello,
I am having an application which has been ported from UNIX. I am facing a problem with sort command. It aborts with following error message when running in a Japanese locale.
sort command aborts with message "A line of the input file contains more than 20480 characters."
This... (0 Replies)
Discussion started by: joshi123
0 Replies
4. Shell Programming and Scripting
Helo Experts,
I need a help in handling errors in shell script, wants my errors displayed in text file instead of command window..
My shell script is here;
cd /cygdrive/s/Files
for FILES in ./*.*
do
temp=`basename $FILES`
if cp $FILES /cygdrive/r/CopyFile1/$FILES; then
echo "copy... (5 Replies)
Discussion started by: CelvinSaran
5 Replies
5. Linux
Hi,
I have a query. Do we have any command line browser utility in linux which can fulfill the following requirement:
1. Handle pages which can have javascripts
2. Can use pre-recorded user inputs (maybe stored in some input files) for automated navigation/task.
I had seen such an... (2 Replies)
Discussion started by: animesh303
2 Replies
6. Shell Programming and Scripting
Hi to all.
I'm trying to sort this with the Unix command sort.
user1:12345678:3.5:2.5:8:1:2:3
user2:12345679:4.5:3.5:8:1:3:2
user3:12345687:5.5:2.5:6:1:3:2
user4:12345670:5.5:2.5:5:3:2:1
user5:12345671:2.5:5.5:7:2:3:1
I need to get this:
user3:12345687:5.5:2.5:6:1:3:2... (7 Replies)
Discussion started by: daniel.gbaena
7 Replies
7. Shell Programming and Scripting
Hi,
I need your guys help again. I run a script which check for some process status in a loop. when i check the process some of the process could throw an error, how can i check that inside my script.
Thanks,
RR (3 Replies)
Discussion started by: rrb2009
3 Replies
8. Shell Programming and Scripting
Hello Everybody :) !!!. i have question in mind, is it possible to sort a list of hexadecimal numbers using "sort" command? (9 Replies)
Discussion started by: Kesavan
9 Replies
9. Shell Programming and Scripting
Below code works for different databases i.e. MYSQL and ORACLE
The problem is for MYSQL in Block: if ; $? taking value accordingly but in case of ORACLE $? is always taking this value as zero (0).
That is the reason in Oracle it always going in else Block in any case.. :(
and in case of ... (4 Replies)
Discussion started by: ambarginni
4 Replies
10. Shell Programming and Scripting
Hello fellow UNIX gurus :)
I have a problem regarding the script below:
# Variables used in this shell.
power=0 # Stores squared integer
total=0 # Sum of all squared integers
num=0 # Stores command line arguements
# Provides error handling if command line... (5 Replies)
Discussion started by: Learn4Life
5 Replies
LEARN ABOUT CENTOS
tk_messagebox
tk_messageBox(n) Tk Built-In Commands tk_messageBox(n)
__________________________________________________________________________________________________________________________________________________
NAME
tk_messageBox - pops up a message window and waits for user response.
SYNOPSIS
tk_messageBox ?option value ...?
_________________________________________________________________
DESCRIPTION
This procedure creates and displays a message window with an application-specified message, an icon and a set of buttons. Each of the but-
tons in the message window is identified by a unique symbolic name (see the -type options). After the message window is popped up, tk_mes-
sageBox waits for the user to select one of the buttons. Then it returns the symbolic name of the selected button.
The following option-value pairs are supported:
-default name
Name gives the symbolic name of the default button for this message window ( "ok", "cancel", and so on). See -type for a list of the
symbolic names. If this option is not specified, the first button in the dialog will be made the default.
-detail string
Specifies an auxiliary message to the main message given by the -message option. Where supported by the underlying OS, the message |
detail will be presented in a less emphasized font than the main message.
-icon iconImage
Specifies an icon to display. IconImage must be one of the following: error, info, question or warning. If this option is not speci-
fied, then the info icon will be displayed.
-message string
Specifies the message to display in this message box.
-parent window
Makes window the logical parent of the message box. The message box is displayed on top of its parent window.
-title titleString
Specifies a string to display as the title of the message box. The default value is an empty string.
-type predefinedType
Arranges for a predefined set of buttons to be displayed. The following values are possible for predefinedType:
abortretryignore Displays three buttons whose symbolic names are abort, retry and ignore.
ok Displays one button whose symbolic name is ok.
okcancel Displays two buttons whose symbolic names are ok and cancel.
retrycancel Displays two buttons whose symbolic names are retry and cancel.
yesno Displays two buttons whose symbolic names are yes and no.
yesnocancel Displays three buttons whose symbolic names are yes, no and cancel.
EXAMPLE
set answer [tk_messageBox -message "Really quit?"
-icon question -type yesno
-detail "Select "Yes" to make the application exit"]
switch -- $answer {
yes exit
no {tk_messageBox -message "I know you like this application!"
-type ok}
}
KEYWORDS
message box
Tk 4.2 tk_messageBox(n)