05-22-2008
anyone knows wat wil happen if you accidentally do "rm ~" ??
anyone here has encountered disaster?!!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
all - I'm trying to delete this directory with no success. This was placed in my folder by a test script I wrote for beginners...
drwxr-xr-x 2 myaddress ssusr 512 Dec 22 16:10 $x+1
Here is the message I receive - I've tried every command possible to remove it:
rmdir:... (7 Replies)
Discussion started by: da_curtain
7 Replies
2. Shell Programming and Scripting
Hi all,
I need your assistance in removing the oldest file in a directory.
I posted the same thread 3 days back and I got the following answer
ls -1 -t | tail -1 | xargs rm
which is not covering the case when there are directories older than the oldest file.
So, could you please... (2 Replies)
Discussion started by: pavan_movva
2 Replies
3. UNIX Desktop Questions & Answers
Hi All,
When i remove a directory , the following error message comes :
rm: cannot determine if this is an ancestor of the current working directory
Is it something to do with the permissisons ?
The path is /PBAMLftp/incoming/misc/July06 - (where i need to remove the July06 directory)
And... (1 Reply)
Discussion started by: gauravsachan
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
How can I removed the directory in the input file?
The script responsible for storing the report in an input file is this:
while }" ]
do
echo "penetration|${penfilename}|${penfilenamedaterange}" >> ${OUT_DIR}/penrpt_emailfile.txt
(( i=i+1 ))
done
For the penfilename:
... (2 Replies)
Discussion started by: chrysSty
2 Replies
5. UNIX for Advanced & Expert Users
i want remove all the files from below directory
Available directory
foa/commprog/data
foa/commprog/a
foa/commprog/b
mfoa/commprog/data
mfoa/commprog/a
mfoa/commprog/c
dfoa/commprog/d
There are more folders like this
i want to remove the the file from only /data
i need only... (3 Replies)
Discussion started by: kingganesh04
3 Replies
6. UNIX for Dummies Questions & Answers
How would i rmeove all the files in the directory but still keep the directory? (5 Replies)
Discussion started by: JamieMurry
5 Replies
7. UNIX for Dummies Questions & Answers
Hi, I'm relatively new to unix, and would like to change the following files in a particular directory. The files have names like:
M10_90_Phcn402_3F.ab1
M10_94_Sput402_3F.ab1
M11_92_Abrg402_3R.ab1
M10_91_Cdel402_3F.ab1
M11_90_Phcn402_3R.ab1
M12_84_Sput402_3R.ab1... (4 Replies)
Discussion started by: euspilapteryx
4 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
Disclosure: I am very new to Unix, but eager to learn..
I've been tasked with transferring logs to a remote server. After I've verified these logs have transferred correctly I have to remove the source files. The naming scheme is:
/directory/2012.05.01
/directory/2012.05.02
..and... (1 Reply)
Discussion started by: JD3V
1 Replies
9. UNIX for Dummies Questions & Answers
I know that this basic question has been asked many times and solutions all over the internet, but none of the are working for me. I have a directory in the root directory, named "-p".
# ls -l /
total 198
<snip>
drwxr-xr-x 4 root root 4096 Dec 3 14:18 opt
drwxr-xr-x 2 root ... (2 Replies)
Discussion started by: edstevens
2 Replies
10. Shell Programming and Scripting
Hello -
I was looking to write a simple script trying to rename sub-directories chopping off the last n characters.
For example:
In /home/myname/dir there are three sub-directories: directory1_1, directory2_2, and directory3_3.
Is there a simple script to chop off the last... (4 Replies)
Discussion started by: twckfa16
4 Replies
LEARN ABOUT OPENSOLARIS
upsset.cgi
UPSSET.CGI(8) NUT Manual UPSSET.CGI(8)
NAME
upsset.cgi - Web-based UPS administration program
SYNOPSIS
upsset.cgi
Note
As a CGI program, this should be invoked through your web server. If you run it from the command line, it will sit there until you give
it input resembling a POST request.
DESCRIPTION
upsset.cgi lets you access many administrative functions within the UPS software from your web browser. You can change settings and invoke
instant commands where available.
CHANGING SETTINGS
Some UPS hardware allows you to change certain variables to other values. To see what's available, pick a UPS from the chooser and select
"settings", then select "View" to update the page.
You should see a list of items with the descriptions on the left side and the possible options or input spaces on the right. After changing
something, be sure to "Save changes" to update the values in your UPS.
If your UPS doesn't support any read/write variables, there will be nothing to do on this page.
Setting values in read/write variables can also be done from the command line with upsrw(8).
INSTANT COMMANDS
Some UPS hardware also has provisions for performing certain actions at the user's command. These include battery tests, battery
calibration, front panel tests (beep!) and more. To access this section, do as above, but pick "Commands" as the function.
If your UPS supports any instant commands, they will be listed in a chooser widget. Pick the one you like and "Issue command" to make it
happen.
Note
some dangerous commands like "Turn off load" may not happen right away. This is a feature, not a bug.
The apcsmart driver and some others require that you send this command twice within a short window in order to make it happen. This is to
keep you from accidentally killing your systems by picking the wrong one.
To actually turn off the load, you have to send the command once, then send it again after 3 seconds elapse but before 15 seconds pass. If
you do it too quickly or slowly, you have to wait at least 3 seconds but not 15 seconds again.
You can also invoke instant commands from the command line with upscmd(8).
ACCESS CONTROL
upsset will only talk to upsd(8) servers that have been defined in your hosts.conf(8). If it complains about "Access to that host is not
authorized", check your hosts.conf first.
SECURITY
upsset will not run until you convince it that your CGI directory has been secured. This is due to the possibility of someone using upsset
to try password combinations against your upsd(8) server.
See the example upsset.conf file for more information on how you do this. The short explanation is--if you can't lock it down, don't try to
run it.
FILES
hosts.conf(5), upsset.conf(5)
SEE ALSO
Internet resources:
The NUT (Network UPS Tools) home page: http://www.networkupstools.org/
Network UPS Tools 05/22/2012 UPSSET.CGI(8)