Hi,
I have a shell script to build components of a product. The follow snippet will explain what I am doing.
# !/bin/sh
for choice in "$@" ;
do
case $choice in
"o") echo "Calling $choice" ; o ;;
"i") echo... (8 Replies)
Hi Experts,
I need to extract some set of strings one be one using delimiter.
Example:
shellscript.sh|unix.sh|script_file.sh
i need to extract this shellscript.sh,unix.sh,script_file.sh
separately.
I tried but couldn't get. Please help me..
Thanks & Regards :),
Kanda (3 Replies)
Hello, if I have a file containing a chunk of HTML and I want to extract
always the string beginning http://www.xxx.com/v/ that ends just before "> (i.e. and including the bit BqqtJpfZElQ&hl will change randomly)
Any ideas???
# cat randomfeature.html
<object width="160"... (3 Replies)
Hi Everyone,
I stored the result of a certain awk script in the variable arr.The result is /inets /banking /tools.
arr= /inets /banking /tools
These are 3 direcctories. I should be able to move in to these directories using "cd" command.Can you tell me how to extract... (5 Replies)
The following script code works great for extracting 'postmaster' from a line of text stored in a variable named string:
string="PenaltyError:=554 5.7.1 Error, send your mail to postmaster@LOCALDOMAIN"
stuff=$( echo $string | cut -d@ -f1 | awk '{ print $NF }' )
echo $stuff
However, I need to be... (9 Replies)
Hi, I am a new bee to this forum.
I am trying to extract the text after a matching pattern from a url using regular expression.
Ex: http://locatlhost:2020/proxy/checkthisout
I want to extract the string after proxy/. I am not familiar with reg ex. Can someone please help? (2 Replies)
I have a string stored in a variable. For instance,
$str = " Opcode called is : CM_OP_xxx "
where xxx changes dynamically and can be either LOGIN or SEARCH..... depends on runtime.
For example :
$str = " Opcode called is : CM_OP_SEARCH "
$str = " Opcode called is : CM_OP_LOGIN "
I... (3 Replies)
Hi,
I'm trying to extract the middle of an array that is of
variable length but always has a first and last common
element,
The following works OK...
#!/bin/bash
ARRAY='switch'
ARRAY='option1'
ARRAY='option2'
ARRAY='option3'
ARRAY='value'
SWITCH=${ARRAY:0:1}
VALUE=${ARRAY:(-1)}... (1 Reply)
#!/usr/bin/ksh
set -x
testfile=my.test.file.flag
echo ${testfile: (-4)}
#/home/maldohe/scripts/spawn1&
sleep 3
echo myspawn is now ending
exit
Background:
I am trying to extract the word flag from anf given file name. This is a demo script that I am working on to fix a production issue.... (8 Replies)
I am trying to extract a time from the below string in perl but not able to get the time properly
I just want to extract the time from the above line I am using the below syntax
x=~ /(.*) (\d+)\:(\d+)\:(\d+),(.*)\.com/
$time = $2 . ':' . $3 . ':' . $4;
print $time
Can... (1 Reply)
Discussion started by: karan8810
1 Replies
LEARN ABOUT OPENSOLARIS
gnome-system-monitor
gnome-system-monitor(1) User Commands gnome-system-monitor(1)NAME
gnome-system-monitor - view system processes and monitor system usage on your computer
SYNOPSIS
gnome-system-monitor [gnome-std-options]
DESCRIPTION
The System Monitor application displays a list of system processes, and monitors system usage. System Monitor shows which processes are
running and how the processes are related.
System Monitor also provides detailed information about individual processes, and enables the user to control which processes are running.
System Monitor displays how much processor (CPU) capacity the system is using, and how much disk space the system is using on each device.
System Monitor displays this information in a graphical interface so that users can see what the system is doing. Users can then use the
same graphical interface to modify the behavior of the system.
OPTIONS
The following options are supported:
gnome-std-options Standard options available for use with most GNOME applications. See gnome-std-options(5) for more information.
OPERANDS
None.
EXAMPLES
Example 1: Launching the System Monitor
example% gnome-system-monitor
ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of gnome-system-monitor: NLSPATH.
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-system-monitor Executable for System Monitor.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWgnome-system-monitor |
+-----------------------------+-----------------------------+
|Interface stability |Volatile |
+-----------------------------+-----------------------------+
SEE ALSO
System Monitor Manual
Latest version of the GNOME Desktop User Guide for your platform.
attributes(5), environ(5), gnome-std-options(5)NOTES
You may disable System Monitor at SunRay. Because this application use /proc and keep polling for information, they may adversely effect
the performance of the system. But we will not change the default behavior and configuration for SunRay, if it give big impact to SunRay
performance, administrators should disable them by using gconfd/APOC.
The method to disable Monitor applet:
They may use Gnome lockdown features to modify the mandatory settings of the Gnome configuration on their servers to add that applet iden-
tifier to the list of disabled applets. you may use the following command (Note: Depending on when this is set, a logout may be required
to take effect) %gconftool-2 --type list --list-type string --set /apps/panel/global/disabled_applets [OAFIID:GNOME_MultiLoadApplet]
The method to disable Monitor application:
You may just remove the package containing it on their servers, or just change the permissions on the binary: %chmod 700 /bin/gnome-system-
monitor.
Written by Niall Power, Sun Microsystems Inc., 2003. Updated by Henry Zhang, Sun Microsystems Inc., 2006.
SunOS 5.11 1 Oct 2003 gnome-system-monitor(1)