<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: need to create symbolic link in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/need-to-create-symbolic-link/m-p/4647444#M60775</link>
    <description>Steven,&lt;BR /&gt;&lt;BR /&gt;&amp;gt; * Remember to asign points [...]&lt;BR /&gt;&amp;gt;&amp;gt; Don't forget to deduct points for errors.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You are a cool admin, appreciate it..!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(0 pts. for this pls.)</description>
    <pubDate>Tue, 15 Jun 2010 04:02:24 GMT</pubDate>
    <dc:creator>Raj D.</dc:creator>
    <dc:date>2010-06-15T04:02:24Z</dc:date>
    <item>
      <title>need to create symbolic link</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-to-create-symbolic-link/m-p/4647440#M60771</link>
      <description>Hello friends,&lt;BR /&gt;i would looking a small script which can execute through crontab which can check at particular path a symbolic link is present or not if its not present it will create and send email if its present do nothing.&lt;BR /&gt;&lt;BR /&gt;below is the example&lt;BR /&gt;here is named net source is /etc/netplug&lt;BR /&gt;scrip will execute through crontab and check this sym link is present or not if its not present it will create it and send email to particular users and if its present do nothing..&lt;BR /&gt;&lt;BR /&gt;lrwxrwxrwx   1 root     root      12 Jun 15 09:25 net -&amp;gt; /etc/netplug&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jun 2010 00:32:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-to-create-symbolic-link/m-p/4647440#M60771</guid>
      <dc:creator>pratapvfr</dc:creator>
      <dc:date>2010-06-15T00:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: need to create symbolic link</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-to-create-symbolic-link/m-p/4647441#M60772</link>
      <description>pratapvfr,&lt;BR /&gt;&lt;BR /&gt;You can create a script and run this script in crontab with particular interval say 15 min:&lt;BR /&gt;&lt;BR /&gt;1. The cron entry would be looks like this:&lt;BR /&gt;You can add using $ crontab -e&lt;BR /&gt;It will run every 15 min:&lt;BR /&gt;&lt;BR /&gt;15 * * * * /home/dir/sym_link_chk.sh &amp;gt; /dev/null&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2. the script : &lt;BR /&gt;/hom/dir/sym_link_chk.sh   would like this:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;# Checking symlink /etc/netplug&lt;BR /&gt;&lt;BR /&gt;EMAIL=email@domain.com&lt;BR /&gt;&lt;BR /&gt;create_and_send_email () {&lt;BR /&gt;net_dir=&lt;ENTER_THE_PATH_HERE&gt;&lt;BR /&gt;cd $net_dir&lt;BR /&gt;ln -s /etc/netplug net&lt;BR /&gt;ls -l net &amp;gt; net_checked.out&lt;BR /&gt;&lt;BR /&gt;cat net_checked.out | mailx -s "symlink created and net_checked OK" $EMAIL&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; [ -L cal_2k ] &amp;amp;&amp;amp; echo "OK : Do nothing:" ||   create_and_send_email &lt;BR /&gt;&lt;BR /&gt;############################################&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Enjoy , Have fun!,&lt;BR /&gt;Raj. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/ENTER_THE_PATH_HERE&gt;</description>
      <pubDate>Tue, 15 Jun 2010 02:02:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-to-create-symbolic-link/m-p/4647441#M60772</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2010-06-15T02:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: need to create symbolic link</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-to-create-symbolic-link/m-p/4647442#M60773</link>
      <description>Pratap, &lt;BR /&gt;again!, &lt;BR /&gt;&lt;BR /&gt;Correction: cd  &amp;amp; Link file name fixed , &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2. the script : &lt;BR /&gt;/hom/dir/sym_link_chk.sh would like this:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;# Checking symlink /etc/netplug&lt;BR /&gt;&lt;BR /&gt;EMAIL=email@domain.com&lt;BR /&gt;&lt;BR /&gt;create_and_send_email () {&lt;BR /&gt;net_dir=&lt;ENTER_THE_PATH_HERE&gt;&lt;BR /&gt;cd $net_dir&lt;BR /&gt;ln -s /etc/netplug net&lt;BR /&gt;ls -l net &amp;gt; net_checked.out&lt;BR /&gt;&lt;BR /&gt;cat net_checked.out | mailx -s "symlink created and net_checked OK" $EMAIL&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cd &lt;YOUR_LINK_DIR&gt;&lt;BR /&gt;[ -L net ] &amp;amp;&amp;amp; echo "OK : Do nothing:" || create_and_send_email &lt;BR /&gt;&lt;BR /&gt;################################################&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;* Remember to asign points once resolved and before closing the thread.. Cheers.&lt;BR /&gt;&lt;/YOUR_LINK_DIR&gt;&lt;/ENTER_THE_PATH_HERE&gt;</description>
      <pubDate>Tue, 15 Jun 2010 02:30:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-to-create-symbolic-link/m-p/4647442#M60773</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2010-06-15T02:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: need to create symbolic link</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-to-create-symbolic-link/m-p/4647443#M60774</link>
      <description>&lt;!--!*#--&gt;&amp;gt; ls -l net &amp;gt; net_checked.out&lt;BR /&gt;&lt;BR /&gt;I'd probably do something more like:&lt;BR /&gt;&lt;BR /&gt;temp_file="/tmp/net_$$_checked.out"&lt;BR /&gt;&lt;BR /&gt;echo 'Created link:' &amp;gt; $temp_file&lt;BR /&gt;pwd &amp;gt;&amp;gt; $temp_file&lt;BR /&gt;ls -l net &amp;gt;&amp;gt; $temp_file&lt;BR /&gt;date &amp;gt;&amp;gt; $temp_file&lt;BR /&gt;&lt;BR /&gt;[Send the e-mail message...]&lt;BR /&gt;&lt;BR /&gt;rm $temp_file&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; * Remember to asign points [...]&lt;BR /&gt;&lt;BR /&gt;Don't forget to deduct points for errors.</description>
      <pubDate>Tue, 15 Jun 2010 03:54:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-to-create-symbolic-link/m-p/4647443#M60774</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-06-15T03:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: need to create symbolic link</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-to-create-symbolic-link/m-p/4647444#M60775</link>
      <description>Steven,&lt;BR /&gt;&lt;BR /&gt;&amp;gt; * Remember to asign points [...]&lt;BR /&gt;&amp;gt;&amp;gt; Don't forget to deduct points for errors.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You are a cool admin, appreciate it..!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(0 pts. for this pls.)</description>
      <pubDate>Tue, 15 Jun 2010 04:02:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-to-create-symbolic-link/m-p/4647444#M60775</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2010-06-15T04:02:24Z</dc:date>
    </item>
  </channel>
</rss>

