cat .servers | while read LINE; do
ssh jason@$LINE $1
done
exit 1
./command.ksh "ls -l ~jason"
Why does this ONLY iterate on the first server in the list? It's not doing the command on all the servers in the list, what am I missing?
Thanks!
JP (2 Replies)
Hello
I' m confused a bit.
I want to replace string "&" with "&" using this command.
sed 's/&/&/g'
and it doesn't work. Nothing happens.
On the other side this works:
sed 's/&/@/g'
or sed 's/&/^/g' !!!
Can somebody help please?
Thanks (3 Replies)
Howdie everyone...
I have a shell script RemoveFiles.sh
Inside this file, it only has two commands as below:
rm -f ../../reportToday/temp/*
rm -f ../../report/*
My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
hi
I wrote the following makefile, I have just one problem, when i type make clean I get the message make 'clean' is up to date and any obj file is removed from my folder, what's wrong?
Thank you
CC = cc
all: es.o elaboration.o
$(CC) -o es es.o elaboration.o
elaboration.o:... (0 Replies)
Hi,
I need to use remsh inside a ksh script. The script would remsh to another machine (maybe different OS) and then execute commands.
A Simple Script:
#!/usr/bin/ksh
remsh sun7656 -l myuser "cd /user.3/MyFolder; ls -lart"
But this gives me the error:
permission denied
I also... (4 Replies)
# uname -a
Linux localhost.localdomain 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux
# useradd 4141421248
useradd: invalid user name '4141421248'
why??? (6 Replies)
I have the following and for some reason I can't have two options together.
I mean if I choose -u and -p it won't work... why?
#!/bin/bash
resetTime=1
mytotalTime=0
totalHour=0
totalMin=0
averagemem=0
finalaverage=0
times=0
function usage()
{
cat << EOF
USAGE: $0 file
EOF
} (10 Replies)
Hi,
I am using korn shell.
until ]
do
echo "\$# = " $#
echo "$1"
shift
done
To the above script, I passed 2 parameters and the program control doesn't enter inside "until" loop. If I change it to until ] then it does work.
Why numeric comparison is not working with -ne and works... (3 Replies)
Discussion started by: ab_2010
3 Replies
LEARN ABOUT OPENSOLARIS
gnome-cleanup
gnome-cleanup(1) User Commands gnome-cleanup(1)NAME
gnome-cleanup - cleans GNOME user preferences
SYNOPSIS
gnome-cleanup user
DESCRIPTION
gnome-cleanup erases all GNOME user preferences, returning the user to the default look and feel. This can be used to undo undesired pref-
erence settings, or to correct the desktop if the preferences become corrupt. The GNOME preference files are automatically recreated the
next time the user logs into a GNOME session. By default this program erases the configuration files for the user running the command.
However, a different user can be specified on the command line. Of course, configuration files are only erased if the user running gnome-
cleanup has appropriate file permissions to erase the user's configuration files.
gnome-cleanup will display a listing of all preference files that it will erase before erasing any files, and prompts the user to confirm
that they would like to erase these files. Files are erase only after receiving a positive confirmation from the user.
gnome-cleanup cannot be run while logged into a GNOME session. Users should run this program when logged into another session, for exam-
ple, the Failsafe session. If the user tries to run this program while already logged into GNOME, an error message is displayed.
OPTIONS
None.
OPERANDS
The following operands are supported:
user Specify the user whose configuration files will be erased. The files will only be erased if the user running gnome-cleanup
has file permissions to erase the user's configuration files. This is useful, for example, if you want to run the script
as the root user to erase the configuration files for a specific user. If user is not specified, the user is the same as
the user who runs the gnome-cleanup command.
EXAMPLES
Example 1: Erase GNOME user preferences
example% gnome-cleanup
After displaying a list of preference files that will be erase, the following question is displayed:
Do you wish to remove these files (Y/N)
The files are erase only if the user provides a positive response.
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-cleanup Executable for GNOME cleanup.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWgnome-panel |
+-----------------------------+-----------------------------+
|Interface stability |Volatile |
+-----------------------------+-----------------------------+
SEE ALSO attributes(5)NOTES
Written by Brian Cameron, Sun Microsystems Inc., 2003, 2007.
SunOS 5.11 27 Nov 2007 gnome-cleanup(1)