File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Linux / UNIX and the fly likes softlink flashing in red!? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Reply Bookmark "softlink flashing in red!?" Watch "softlink flashing in red!?" New topic
Author

softlink flashing in red!?

Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 664
I wrote a script called test in /etc/init.d. and I made a link by using
# ln –s test /etc/rc3.d S99test
when I display the contents in /etc/rc3.d, my link S99test is flashing in red! Other links are all in green. What’s going on?
Thanks.


BJ - SCJP and SCWCD
We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design

Crazy Bikes created by m-Power
Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 664
Found out red means broken link. I should have used this command:
# ln –s /etc/init.d/test /etc/rc3.d S99test
Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
Indeed, busted symlink. The flashing red is a good eyecatcher for spotting problems with symlinks.
G.
 
 
subject: softlink flashing in red!?
 
Threads others viewed
How do I set Linux to start Apache at boot?
setting up weblogic and oracle to at startup when I reboot the system
Initscript
Top initscript
Tomcat daemon
Two Laptop Bag