10-26-2012
its doing exactly what it should be doing, the rmdir command wont delete the directory because it has files/directories inside it.
The error message is being suppresed by the option "--ignore-fail-on-non-empty".
Remove the option and you will see the error output, use rm -rf and the directory will be deleted.
This User Gave Thanks to Tommyk For This Post:
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I am a new bie to unix shell programming. I have specified ksh as the first line in my script but when executed it complains.
*********** Script=test********************
#!/usr/bin/ksh
echo hello
print -p 123
************************************
++++++++ Execution... (7 Replies)
Discussion started by: akhilnagpal
7 Replies
2. Shell Programming and Scripting
Hi,
I am new to shell programming. I am trying to automate setting up a network using several scripts. Some of the scripts require to reboot in order to continue with the setup. Is it possible to enter another script as soon as the system reboots. Also, if the last line of the script is bash... (7 Replies)
Discussion started by: fantasyland
7 Replies
3. Shell Programming and Scripting
Hi,
I'm building an installation system that uses separate data
files that contain the individual characteristics of each package.
Within the data file, I would like to incorporate a section that
contains a bash script that is loaded into an array which is
then redirected to bash to be... (13 Replies)
Discussion started by: ASGR
13 Replies
4. UNIX for Dummies Questions & Answers
Hi guys
We have a client that gets NDR mails when sending emails to the domain "recipient.com"
My client's domain is "client.com"
My Client setup:
Server 2003 Domain
Front end Back end Exchange 2003 Standard SP2
1 Linux Firewall/Router
The NDR contains:
The following... (0 Replies)
Discussion started by: wbdevilliers
0 Replies
5. Shell Programming and Scripting
Just learning scripting. I need to remove duplicate managed printers using lpadmin. I have the following script (it's rough and probably a better way to do it) that returns the values as IP (column 1) Printer Name (column 2).command:
lpstat -v | grep -E ... (6 Replies)
Discussion started by: Zookpr
6 Replies
6. Shell Programming and Scripting
I'm working on a script that will search through a directory for MKV files and remux them to MP4. I found a few other scripts around the net that do this, but they all have limitations that don't always get the job done. The main limitation I've found is that most scripts look for the video track... (2 Replies)
Discussion started by: rayne127
2 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
Just have a requirement, I am executing a bash shell script, my requirement is to catch the pid and job name to a txt file in the same directory, is there anyway to do it? please help me out.
Regards
Rahul
---------- Post updated at 08:42 AM ---------- Previous update was at... (2 Replies)
Discussion started by: rahulkalra9
2 Replies
8. Shell Programming and Scripting
issue is with .txt files (7 Replies)
Discussion started by: anil529
7 Replies
9. Shell Programming and Scripting
I want to run commands inside a bash script.
An example is
I want to pass the command in a string as regexp as an argument to the script, then run sed on the bash variable
sed.sh regexp
sed.sh "-i \"s/<p>//g\""
then call
sed "$regexp" $fl (3 Replies)
Discussion started by: Kangol
3 Replies
RMDIR(1) User Commands RMDIR(1)
NAME
rmdir - remove empty directories
SYNOPSIS
rmdir [OPTION]... DIRECTORY...
DESCRIPTION
Remove the DIRECTORY(ies), if they are empty.
--ignore-fail-on-non-empty
ignore each failure that is solely because a directory
is non-empty
-p, --parents
remove DIRECTORY and its ancestors; e.g., `rmdir -p a/b/c' is similar to `rmdir a/b/c a/b a'
-v, --verbose
output a diagnostic for every directory processed
--help display this help and exit
--version
output version information and exit
AUTHOR
Written by David MacKenzie.
REPORTING BUGS
Report rmdir bugs to bug-coreutils@gnu.org
GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
General help using GNU software: <http://www.gnu.org/gethelp/>
Report rmdir translation bugs to <http://translationproject.org/team/>
COPYRIGHT
Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
rmdir(2)
The full documentation for rmdir is maintained as a Texinfo manual. If the info and rmdir programs are properly installed at your site,
the command
info coreutils 'rmdir invocation'
should give you access to the complete manual.
GNU coreutils 8.12.197-032bb September 2011 RMDIR(1)