I am trying to find a value within a properties file and declare it into a variable. Script below. I want the "memSize" to be the branch from the properties file. Right now it always tells me "Not found" What am I doing wrong?
Contents of properties file:
Last edited by radoulov; 11-15-2010 at 11:19 AM..
Reason: Code tags, please!
Hi
#!/bin/sh
user=$1
if " -eq 0 ]
echo "No"
else
echo "Yes"
fi
I'm not quite sure whats wrong with this but I know its something silly.
Any ideas?
Thanks (9 Replies)
#! /bin/bash
head -5 $1
echo "remove $1 ?"
read answer
if
then
echo invalid answer
elif
rm $1
echo "$1 is deleted"
elif
then
echo file is not deleted
else
echo "invalid answer"
fi
What i really want this to do is to ask to delete the file or not..it says something wrong... (1 Reply)
#! /bin/bash
USAGE=" | ]
if
then
echo "$USAGE"
exit 1
fi
while getopts lb: OPTION
do
case $(OPTION)in
a) echo Hi there!
exit 2;;
b) echo hello
o) OARG=$OPTARG;;
\?)echo "$USAGE" ;;
exit 2;;
esac
done
shift `expr... (1 Reply)
if
then
if
then
echo "fst argument is $1 "
else
if
then
"fst argument is $1"
fi
fi
fi
Can anyone tell me. My requirement is tht pass a string ..
Check whether it contains "-". If yes then check if it... (1 Reply)
hi guys can you tell me if anything is wrong with this script, seems reasonable to me but somehow never works.
Script redacted for being too explicit (2 Replies)
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:
ls -ld htdocs
drwxr-x--- 3 root root 8192 2006-11-19 10:41 htdocs
How would a host administrator... (1 Reply)
hi whats wrong in below??
CHECK=M10;
if ;
then
echo "hello hi";
else
echo "how are u hello hi";
fi
I am getting error as
./test.sh: line 2: '
./test.sh: line 2: M10: command not found
./test.sh: line 2: M10: command not found
./test.sh: line 2: M10: command not found (8 Replies)
Hi there,
i have a problem i have created followning sh files some years ago but now it dosen`t work anymore i never used it a long time. Can anyone find the Error? Its always runs the stop() block and trying to Killing the Server also if i try to start or creat a new one.
#!/bin/sh
stop()... (6 Replies)
Discussion started by: NewCannon
6 Replies
LEARN ABOUT SUNOS
gnome-at-properties
gnome-at-properties(1) User Commands gnome-at-properties(1)NAME
gnome-at-properties - enable support for Assistive Technologies in GNOME
SYNOPSIS
gnome-at-properties [gnome-std-options]
DESCRIPTION
Use gnome-at-properties, the Assistive Technology preference tool, to enable assistive technologies in your desktop. You can use gnome-at-
properties to specify that the following assistive technology applications start automatically when you log in:
o Screenreader
o Magnifier
o On-screen Keyboard
OPTIONS
The following options are supported:
gnome-std-optionStandard options available for use with most GNOME applications. See gnome-std-options(5) for more information.
EXAMPLES
Example 1: Launching Assistive Technology Preference Tool
example% gnome-at-properties
EXIT STATUS
The following exit values are returned:
0 Application exited successfully
>0 Application exited with failure
FILES
The following files are used by this application:
/usr/bin/gnome-at-properExecutable for Assistive Technology preference tool
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+------------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+------------------------------+
|Availability |SUNWgnome-desktop-preferences |
+-----------------------------+------------------------------+
|Interface stability |External |
+-----------------------------+------------------------------+
SEE ALSO
Latest version of the GNOME Desktop User Guide for your platform.
cddb-slave2-properties(1), gnome-accessibility-keyboard-properties(1), gnome-background-properties(1), gnome-default-applications-proper-
ties(1), gnome-file-types-properties(1), gnome-font-properties(1), gnome-keybinding-properties(1), gnome-keyboard-properties(1), gnome-
mouse-properties(1), gnome-network-preferences(1), gnome-panel-preferences(1), gnome-session-properties(1), gnome-sound-properties(1),
gnome-theme-properties(1), gnome-ui-properties(1), metacity-properties(1), gnome-std-options(5)NOTES
Written by Glynn Foster, Sun Microsystems Inc., 2004.
SunOS 5.10 6 Sep 2004 gnome-at-properties(1)