Sponsored Content
Full Discussion: Why doesn't this work?
Top Forums UNIX for Dummies Questions & Answers Why doesn't this work? Post 302755197 by bakunin on Saturday 12th of January 2013 06:20:45 AM
Old 01-12-2013
Quote:
Originally Posted by scribling
find . -name "05_scripts" -type d -exec mv -f {}/'*.aep\ Logs' {}/.LogFiles \;
On top of what Corona688 already told you: inside an "-exec"-clause only ONE "{}" is allowed. Try this to see the effect:

Code:
find . -type d -exec echo "{}" \;       # will work
find . -type d -exec echo "{} {}" \;    # will not work

If you want to achieve this you will have to write a script which cyou call from the exec-clause:

Code:
find . -type d -exec myscript {} \;

where myscript looks like:

Code:
#! /bin/ksh

print - "$1" "$1"

exit 0

I hope this helps.

bakunin
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Why doesn't this work?

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)
Discussion started by: jpeery
2 Replies

2. UNIX for Dummies Questions & Answers

Script doesn't work, but commands inside work

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)
Discussion started by: cheongww
2 Replies

3. Shell Programming and Scripting

ls -d doesn't work on Solaris

Hello, the ls -d command to only list directories in a directory doesn't seem to work on Solaris and the man command says to use that combination: ls -d Anyone have the same problem and find a resolve? Thanks BobK (9 Replies)
Discussion started by: bobk544
9 Replies

4. UNIX for Dummies Questions & Answers

lp -o <option> doesn't work

why lp -o <option> doesn't work on my SCO Unix. (4 Replies)
Discussion started by: wendyz
4 Replies

5. Shell Programming and Scripting

awk -v -- Why doesn't my example work?

Hi. I've been playing around a bit. This isn't for any practical purpose-- it's really just a theoretical exercise. I wrote this little thing: foreach num ( 6 5 4 ) awk -v "number=$num" 'BEGIN{for(x=0;x<$number;x++) printf "-"; printf "\n"}' end I would expect the following output: ... (3 Replies)
Discussion started by: treesloth
3 Replies

6. Shell Programming and Scripting

alias doesn't work

Hi I have put alias ll='ls -la' in .profile file but it doesn't work. On hand it works it looks like the .profile file is not beeing read. How to check whitch file is loaded? ,profile? .bash_profile? My system: SunOS mion 5.10 Generic Shell: /bin/pfksh Thanks (2 Replies)
Discussion started by: miojamo
2 Replies

7. Shell Programming and Scripting

if condition doesn't work

i want to get the value for column 4rth when i =4. please guide what i am doing wrong. thanks var=`cat file.csv` for i in $var; do { if ; then var4=$var4+$i fi echo $i } done I am geting this error message "0403-009 The specified number is not valid for this command." (8 Replies)
Discussion started by: sagii
8 Replies

8. HP-UX

Sudo doesn't work

I edited sudoers like this:vi /etc/sudoers subex ALL =(root) NOPASSWD: /usr/ccs/bin/pstack But the respective user still is prompted for password, and even when the right password is used, the command is still not launched.$sudo usr/ccs/bin/pstack 26557 We trust you have received the usual... (5 Replies)
Discussion started by: black_fender
5 Replies

9. Shell Programming and Scripting

-ne 0 doesn't work -le does

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
RADVD(8)																  RADVD(8)

NAME
radvd - router advertisement daemon for IPv6 SYNOPSIS
radvd [ -vh ] [ -d debuglevel ] [ -C configfile ] [ -p pidfile ] [ -m method ] [ -l logfile ] [ -f facility ] [ -t chrootdir ] [ -u user- name ] DESCRIPTION
radvd is the router advertisement daemon for IPv6. It listens to router solicitations and sends router advertisements as described in "Neighbor Discovery for IP Version 6 (IPv6)" (RFC 2461). With these advertisements hosts can automatically configure their addresses and some other parameters. They also can choose a default router based on these advertisements. Note that if debugging is not enabled, radvd will not start if IPv6 forwarding is disabled. IPv6 forwarding can be controlled via sysctl(8), net.ipv6.conf.all.forwarding on Linux or net.inet6.ip6.forwarding on BSD. Similarly, the configuration file must not be writable by others, and if non-root operation is requested, not even by self/own group. OPTIONS
For every one character option there is also a long option, which is listed right next to the "short" option name: -v, --version Displays the version of radvd and then aborts. -h, --help Displays a short usage description and then aborts. -d debuglevel, --debug debuglevel With this option you turn on debugging information. The debugging level is an integer in the range from 1 to 4, from quiet to very verbose. A debugging level of 0 completely turns off debugging. If a debugging level greater than 0 is used, radvd doesn't back- ground itself on start. The default debugging level is 0. -C configfile, --config configfile Specifies an alternate config file. Normally the compiled in default /etc/radvd.conf is used. -p pidfile, --pidfile pidfile Specifies an alternate pidfile. Normally the compiled in default /var/run/radvd/radvd.pid is used. -m method, --method method Specifies the logging method to use. Possibly values are: none Completely disables any logging. logfile Logs to the logfile which is specified by the -l option. If no logfile is specified on the command line, then a compiled in default is used (see next option). stderr Logs to standard error. syslog Logs to syslog (default method). -l logfile, --logfile logfile Specifies the logfile to use when using the logging method logfile. The default logfile is /var/log/radvd.log. -f facility, --facility facility Specifies the facility (as an integer) when using syslog logging. Default is LOG_DAEMON. -t chrootdir, --chrootdir chrootdir If specified, switches to chrootdir before doing anything else. This directory and its subdirectories must have been populated first. For security reasons, -u must always be used when using chrootdir. Note that this option will not currently work under Linux because radvd requires access to the /proc filesystem. -u username, --username username If specified, drops root privileges and changes user ID to username and group ID to the primary group of username. This is recom- mended for security reasons. You might also need to use -p to point to a file in a username -writable directory (e.g. /var/run/radvd/radvd.pid). FILES
/usr/sbin/radvd /etc/radvd.conf /var/run/radvd/radvd.pid /var/log/radvd.log BUGS
There certainly are some bugs. If you find them or have other suggestions please contact Nathan Lutchansky <lutchann@litech.org> or Pekka Savola <pekkas@netcore.fi>. SEE ALSO
radvd.conf(5), radvdump(8) AUTHORS
Pedro Roque <roque@di.fc.ul.pt> - wrote first version for Linux Lars Fenneberg <lf@elemental.net> - previous maintainer Pekka Savola <pekkas@netcore.fi> - current maintainer Nathan Lutchansky <lutchann@litech.org> - current maintainer Craig Metz <cmetz@inner.net> - port to NRL's IPv6 code for BSD4.4 Marko Myllynen <myllynen@lut.fi> - RFC 2461 update, Mobile IPv6 support radvd 0.7.2 29 Mar 2001 RADVD(8)
All times are GMT -4. The time now is 01:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy