Re: multiple links with single ln command

2006-06-28 Thread sara lidgey
Thanks for all the ideas.  They are very helpful.
-S

Brian O'Shea [EMAIL PROTECTED] wrote: It can be done with a shell for-loop:

$ mkdir a b c
$ for dir in a b ; do (cd $dir ; ln -s ../c clink) ; done

But this is technically not a single command, and it assumes that
you are using the Bourne Shell (/bin/sh) or a Bourne-compatible shell
(ksh, zsh, bash, etc.).  If you are a csh or tcsh user, may God help
you. (I mean look up the syntax in the appropriate man page.)

-brian

--- sara lidgey  wrote:
 
 Hi All,
 
 I've read the man page for ln but can't find a way to do this.  I want to
 create multiple links to a single directory with one command.  Consider the
 following example.  I have a directory structure like this:
 test/a/
 test/b/
 test/c/
  I want to create a symbolic link called clink in test/a/ and test/b/ which
 points to test/c/
 
 The only way I know to do this is with two commands:
 ln -s test/c test/a/clink
 ln -s test/c test/b/clink
 
 Can it be done with a single command?
 
 thanks.  sorry if this is a no-brainer,
 S



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]



-
Make free worldwide PC-to-PC calls. Try the new Yahoo! Canada Messenger with 
Voice
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


multiple links with single ln command

2006-06-27 Thread sara lidgey
Hi All,

I've read the man page for ln but can't find a way to do this.  I want to 
create multiple links to a single directory with one command.  Consider the 
following example.  I have a directory structure like this:
test/a/
test/b/
test/c/
 I want to create a symbolic link called clink in test/a/ and test/b/ which 
points to test/c/

The only way I know to do this is with two commands:
ln -s test/c test/a/clink
ln -s test/c test/b/clink

Can it be done with a single command?

thanks.  sorry if this is a no-brainer,
S


-
Now you can have a huge leap forward in email: get the new Yahoo! Mail. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: freebsd 5.3, gmirror raid 1, PROBLEM

2006-05-30 Thread sara lidgey
Hi,
 
 The machine won't boot from either drive connected as a master.  I tried them 
one at a time.  I'm guessing I'll have to boot from a CD but don't know the 
process.  Any help is appreciated.
 Thanks,
 S.

Mikhail Goriachev [EMAIL PROTECTED] wrote: sara lidgey wrote:
 Hi All,
  
 I've been running a server using FreeBSD 5.3 and gmirror to mirror two 
 identical IDE hard drives. Its been running great for over a year. But 
 recently everything went down and when I reboot and put a monitor on it I get 
 the following errors on screen:
  
  GEOM_MIRROR: Device gm0: provider ad1 disconnected
  GEOM_MIRROR: Device gm0: provider mirror/gm0 destroyed
  GEOM_MIRROR: Device gm0: rebuilding provider ad0 stopped
  
  Fatal trap 12: page fault while in kernel mode...  (this is followed by 
 details about the fault)
  
 These errors are preceded by other related error information that flys by on 
 the screen and I have no way of seeing them again.
  
  Does anyone now what steps I should take to figure what is going on and try 
 to recover data or get the machine to boot?
  


Hi,

Have you tried disconnecting ad1 and booting only with ad0? Maybe one of
the drives just died on you. Try booting the system with one drive at a
time connecting as a master (Primary on IDE1).

Let us know how it goes.

Cheers,
Mikhail.


-- 
Mikhail Goriachev
Webanoide

Telephone: +61 (0)3 62252501
Mobile Phone: +61 (0)4 38255158
E-Mail: [EMAIL PROTECTED]
Web: http://www.webanoide.org

PGP Key ID: 0x4E148A3B
PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B



-
The best gets better. See why everyone is raving about the All-new Yahoo! Mail. 
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


freebsd 5.3, gmirror raid 1, PROBLEM

2006-05-29 Thread sara lidgey

Hi All,
 
 I've been running a server using FreeBSD 5.3 and gmirror to mirror two 
identical IDE hard drives.  Its been running great for over a year.  But 
recently everything went down and when I reboot and put a monitor on it I get 
the following errors on screen:
 
 GEOM_MIRROR: Device gm0: provider ad1 disconnected
 GEOM_MIRROR: Device gm0: provider mirror/gm0 destroyed
 GEOM_MIRROR: Device gm0: rebuilding provider ad0 stopped
 
 Fatal trap 12: page fault while in kernel mode...  (this is followed by 
details about the fault)
 
 These errors are preceded by other related error information that flys by on 
the screen and I have no way of seeing them again.
 
 Does anyone now what steps I should take to figure what is going on and try to 
recover data or get the machine to boot?
 
 Thanks so much,
 S.
 

-
 All new Yahoo! Mail - 
-
Get a sneak peak at messages with a handy reading pane.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]