Bash Script Issues (If statement for file copying)
Writing a bash script for use with Geektool, pulls the battery info, and shuffles images around so that an Image geeklet can display the correct expression as the desktop background. (Eventually I intend to make it more intricate, based on more variables, and add more expressions)
I'm extremely new to the language, but the script below did return a result the first time I ran it through Geektool. The only problem is that the variable did not match the result (batt at 95%, result was for 5% and below). It stopped working after that.
The percentage display works every time, but that's most likely because I didn't write that part of the script, I scavenged it. I'd rather use a variable than rerun the calculation over and over, but I couldn't get it to work.
Hi,
I'm having a few issues with rsh. I'm trying to copy data from one host to another using tar with the following command:
tar -cf - /data | rsh xx.xx.xx.xx tar -xf -
I'm copying the data from an X4100 to an X4140 server and have done this before with no issues. But with these... (1 Reply)
Hello
I need assistance with a bash script that needs to tell me whether in the last "x" days (which is a variable) anyone connected to the xxxx IP (which is another variable).
Thank you! (1 Reply)
Hi.
The below part of my bash script kicks out the following error message:
$ ./extract_eod_report_stats_new.sh 2010-04-23
./extract_eod_report_stats_new.sh: line 204: syntax error near unexpected token `('
./extract_eod_report_stats_new.sh: line 204: `TRANSACTIONS_RECEIVED_TOP=`grep... (6 Replies)
I have one file "file.a.b.c-d.r" that I would like to use to spawn 4 other files:
"file.a.b.1-A.r"
"file.a.b.1-B.r"
"file.a.b.1-C.r"
"file.a.b.1-D.r"
where the field "c-d" changes into my 1 and A-D.
I was doing this manually at the prompt with
> cp "file.a.b.c-d.r" "file.a.b.1-A.r"
>... (13 Replies)
So what i am trying to do is write a script that takes in any number of scrambeled words and unscrambles them.
I have already addressed the issues of partial matches, exits silently if there are no matches, and finds words regardless of case that they were input. but while trying to get it so... (3 Replies)
Hi, i want to rename a group of directories and files of my music, some items are like this:
- , for directories.
- , for files.
I want to do something like this:
, for directories.
, for files.
This is my code:
#!/bin/bash
for fname in *.mp3; do
echo item: $fname
mv... (2 Replies)
Hey guys,
I've registered here as I need urgent help. This is assignment for school and as you can see below I've completed the work. I'm simply stuck on one area.
:wall:
This script takes the first parameter (which is to be the new extension) and each parameter after that is a file... (1 Reply)
Hello,
I'm new to this forum and like to first of all say hello to everyone.
I've got a really annoying problem at the moment.
I'm trying to rsync some files (about 200MB with one file of 120MB) from a Raspberry PI with raspbian to a debian server via rsync.
This procedure is stored in a... (3 Replies)
Dear All,
I have a situation where I want to copy some files of type .txt.
These files are o/p from one program. Some of the files are named as
fileName .txt instead of fileName.txt
after fileName by mistake I have specified "space". Now I want to move these files as follows.
mv fileName*... (13 Replies)
The bash stores each uniqueid in an array and then passes them to %q to get the unique path. That seems to work what I am having trouble with is renaming each .png with the unique value in %q. I thought it was working but upon closer inspection, a .png file is being sent to scp.... but only 1 and... (21 Replies)
Discussion started by: cmccabe
21 Replies
LEARN ABOUT SUNOS
gnome-control-center
gnome-control-center(1) User Commands gnome-control-center(1)NAME
gnome-control-center, gnome-desktop-prefs - configure desktop preferences
SYNOPSIS
gnome-control-center [gnome-std-options] [--noshell]
DESCRIPTION
Desktop Preferences allows you to configure the GNOME desktop. If Nautilus is running, gnome-control-center will open up a new window and
display all your preference tools. If Nautilus is not running, gnome-control-center will display a simple interface allowing you to select
the preference tool to run. There are 3 categories of preference tools: Basic, Advanced, and Accessibility. Double-click on the tool that
you require and the dialog for the tool will be displayed.
OPTIONS
The following options are supported:
--noshell Do not display the Desktop Preferences in Nautilus. This is not a supported interface.
gnome-std-optionStandard options available for use with most GNOME applications. See gnome-std-options(5).
EXAMPLES
Example 1: Launching Desktop Preferences
example% gnome-control-center
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-control-cExecutable for Desktop Preferences interface
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+------------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+------------------------------+
|Availability |SUNWgnome-desktop-preferences |
+-----------------------------+------------------------------+
|Interface stability |External |
+-----------------------------+------------------------------+
SEE ALSO
Preference Tools Manual
Latest version of the GNOME Desktop User Guide for your platform.
gnome-background-properties(1), gnome-font-properties(1), gnome-keyboard-properties(1), gnome-keybinding-properties(1), gnome-ui-proper-
ties(1), gnome-mouse-properties(1), gnome-network-preferences(1), gnome-sound-properties(1), gnome-theme-properties(1), metacity-proper-
ties(1), gnome-accessibility-keyboard-properties(1), cddb-slave2-properties(1), gnome-file-types-properties(1), gnome-panel-preferences(1),
gnome-default-applications-properties(1), gnome-session-properties(1), gnome-std-options(5)NOTES
Written by Glynn Foster, Sun Microsystems Inc., 2003.
SunOS 5.10 2 Oct 2003 gnome-control-center(1)