LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-10-2024, 05:57 PM   #31
inukaze
Member
 
Registered: Feb 2011
Location: Venezuela - Caracas
Distribution: Slackware64 14.2, Slackware 14.2, Gentoo, Devuan, gNewSense, GoboLinux, Leeenux, Porteus
Posts: 289

Original Poster
Rep: Reputation: 26

Quote:
Originally Posted by pan64 View Post
yes, shellcheck reports this posix syntax issue (In POSIX sh, [[ ]] is undefined.) and other problems too.
Actually ( ) means a new process (subshell) and your while loop is running inside it. kill -s kill will terminate $pid, but not the subshell (as far as I see). By the way, would be better to use sigterm instead of sigkill. Anyway, you need to optimize this script by using functions instead of repeating the same line(s) again and again. Also would be better to format it (use for example shfmt) to make it more readable.

Thanks for remember me, the shellsheck site exist XD, i ever forget

well right now the code is this :
Code:
#!/bin/sh

PID_FILE="/run/rc_cifshare.pid"
unset cifs_stop
unset cifs_start

cifs_stop() {
IP="192.168.1.10" ; PC="Geremia"

Carpeta="Inukaze" ; Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1) ; if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then umount -f -l "/cifs/$PC/$Carpeta"; fi
Carpeta="Inukaze-en-Familia" ; Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1) ; if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then umount -f -l "/cifs/$PC/$Carpeta"; fi
Carpeta="Josmar" ; Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1) ; if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then umount -f -l "/cifs/$PC/$Carpeta"; fi
Carpeta="Temporal" ; Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1) ; if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then umount -f -l "/cifs/$PC/$Carpeta"; fi

IP="192.168.1.11" ; PC="Edna"
Carpeta="SSD-Gaby"  ; Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1) ; if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then umount -f -l "/cifs/$PC/$Carpeta"; fi

  if [ -f "$PID_FILE" ]; then
    PID=$(cat "$PID_FILE")
    if ps -p "$PID" > /dev/null; then
    kill -s KILL "$PID"
    fi
    rm -f "$PID_FILE"
  else
    echo "Service is not running"
  fi
}

cifs_start() {

  if [ -f "$PID_FILE" ]; then
    PID=$(cat "$PID_FILE")
    if ps -p "$PID" > /dev/null; then
      echo "Service is already runing with PID $PID"
      return
    else
# Clean up invalid PID file
      rm -f "$PID_FILE"
    fi
  fi
# Store the current process ID
  echo $$ > "$PID_FILE"
  (

while :
do

    Entrada=$(echo "$1" | tr -s  '[:upper:]'  '[:lower:]')
    if [ "$Entrada" = "stop" ]
    then
        cifs_stop
        break
    fi

Geremia=$(ping -4 -c 1 192.168.1.10 | grep -oP '\d+ received' | cut -d' ' -f1)
Edna=$(ping -4 -c 1 192.168.1.11 | grep -oP '\d+ received' | cut -d' ' -f1)

    if [ "$Edna" = "1" ]; then
            PC="Edna"
            IP="192.168.1.11"

            Carpeta="SSD-Gaby"
            Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1)
            if [ -z "$Montura" ]; then
                mkdir -p "/cifs/$PC/$Carpeta"
                mount -t cifs "//$IP/$Carpeta" "/cifs/$PC/$Carpeta" -o "credentials=/home/inukaze/.smb-credenciales,uid=1000,gid=1000,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,domain=REDLOCAL"
            fi
    fi

    if [ "$Edna" = "0" ]; then
            PC="Edna"
            IP="192.168.1.11"

            Carpeta="SSD-Gaby"
            Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1)

            if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then
                umount -f -l "/cifs/$PC/$Carpeta"
            fi
    fi

    if [ "$Geremia" = "1" ]; then
            PC="Geremia"
            IP="192.168.1.10"

            Carpeta="Inukaze"
            #Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1 | sed 's/-en-Familia//g')
            Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1 | tail -n 1)
            if [ -z "$Montura" ]; then
                mkdir -p "/cifs/$PC/$Carpeta"
                mount -t cifs "//$IP/$Carpeta" "/cifs/$PC/$Carpeta" -o "vers=1.0,credentials=/home/inukaze/.smb-credenciales,uid=1000,gid=1000,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,domain=REDLOCAL"
            fi

            Carpeta="Inukaze-en-Familia"
            Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1)
            if [ -z "$Montura" ]; then
                mkdir -p "/cifs/$PC/$Carpeta"
                mount -t cifs "//$IP/$Carpeta" "/cifs/$PC/$Carpeta" -o "vers=1.0,credentials=/home/inukaze/.smb-credenciales,uid=1000,gid=1000,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,domain=REDLOCAL"
            fi

            Carpeta="Josmar"
            Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1)
            if [ -z "$Montura" ]; then
                mkdir -p "/cifs/$PC/$Carpeta"
                mount -t cifs "//$IP/$Carpeta" "/cifs/$PC/$Carpeta" -o "vers=1.0,credentials=/home/inukaze/.smb-credenciales,uid=1000,gid=1000,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,domain=REDLOCAL"
            fi

            Carpeta="Temporal"
            Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1)
            if [ -z "$Montura" ]; then
                mkdir -p "/cifs/$PC/$Carpeta"
                mount -t cifs "//$IP/$Carpeta" "/cifs/$PC/$Carpeta" -o "vers=1.0,credentials=/home/inukaze/.smb-credenciales,uid=1000,gid=1000,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,domain=REDLOCAL"
            fi

    fi

    if [ "$Geremia" = "0" ]; then
            PC="Geremia"
            IP="192.168.1.10"

            Carpeta="Inukaze"
            #Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1 | sed 's/-en-Familia//g')
            Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1 | tail -n 1)

            if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then
                umount -f -l "/cifs/$PC/$Carpeta"
            fi

            # Force Manual Mount :
            # mount -t cifs //192.168.1.10/Inukaze /cifs/Geremia/Inukaze -o vers=1.0,credentials=/home/inukaze/.smb-credenciales,uid=1000,gid=1000,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,domain=REDLOCAL

            Carpeta="Inukaze-en-Familia"
            Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1)
            if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then
                umount -f -l "/cifs/$PC/$Carpeta"
            fi

            Carpeta="Josmar"
            Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1)

            if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then
                umount -f -l "/cifs/$PC/$Carpeta"
            fi

            Carpeta="Temporal"
            Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1)

            if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then
                umount -f -l "/cifs/$PC/$Carpeta"
            fi
    fi

    sleep 60

done
)
}

case "$1" in
  start)
    cifs_start "$@"
    ;;
  stop)
    cifs_stop
    ;;
  status)
    if [ -f "$PID_FILE" ]; then
      PID=$(cat "$PID_FILE")
      if ps -p "$PID" > /dev/null; then
        echo "Service is running with PID $PID"
      else
        echo "Service is not running, but PID file exists"
        rm -f "$PID_FILE"
      fi
    else
      echo "Service is not running"
    fi
    ;;
  *)
    echo "Usage: $0 start|stop|status"
    exit 1
    ;;
esac

exit 0
on ShellCheck website says

"$ shellcheck myscript
No issues detected!

$"
 
Old 05-10-2024, 08:07 PM   #32
inukaze
Member
 
Registered: Feb 2011
Location: Venezuela - Caracas
Distribution: Slackware64 14.2, Slackware 14.2, Gentoo, Devuan, gNewSense, GoboLinux, Leeenux, Porteus
Posts: 289

Original Poster
Rep: Reputation: 26
Well i decide do the follow :

Code:
rm -rf /etc/rc.d/rc.cifshare
Now i just let the follow content for /usr/local/bin/cifshare.sh
Code:
#!/bin/sh
set -e

# First PC
IP="192.168.1.10" ; PC="Geremia"
Carpeta="Inukaze" ; Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1) ; if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then umount -f -l "/cifs/$PC/$Carpeta"; fi
Carpeta="Inukaze-en-Familia" ; Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1) ; if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then umount -f -l "/cifs/$PC/$Carpeta"; fi
Carpeta="Josmar" ; Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1) ; if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then umount -f -l "/cifs/$PC/$Carpeta"; fi
Carpeta="Temporal" ; Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1) ; if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then umount -f -l "/cifs/$PC/$Carpeta"; fi
# Second PC
IP="192.168.1.11" ; PC="Edna"
Carpeta="SSD-Gaby"  ; Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1) ; if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then umount -f -l "/cifs/$PC/$Carpeta"; fi
# Test the PC are on Intranet using ping response :
Geremia=$(ping -4 -c 1 192.168.1.10 | grep -oP '\d+ received' | cut -d' ' -f1)
Edna=$(ping -4 -c 1 192.168.1.11 | grep -oP '\d+ received' | cut -d' ' -f1)

    if [ "$Edna" = "1" ]; then
            PC="Edna"
            IP="192.168.1.11"

            Carpeta="SSD-Gaby"
            Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1)
            if [ -z "$Montura" ]; then
                mkdir -p "/cifs/$PC/$Carpeta"
                mount -t cifs "//$IP/$Carpeta" "/cifs/$PC/$Carpeta" -o "credentials=/home/inukaze/.smb-credenciales,uid=1000,gid=1000,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,domain=REDLOCAL"
            fi
    fi

    if [ "$Edna" = "0" ]; then
            PC="Edna"
            IP="192.168.1.11"

            Carpeta="SSD-Gaby"
            Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1)

            if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then
                umount -f -l "/cifs/$PC/$Carpeta"
            fi
    fi

    if [ "$Geremia" = "1" ]; then
            PC="Geremia"
            IP="192.168.1.10"

            Carpeta="Inukaze"
            Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1 | tail -n 1)
            if [ -z "$Montura" ]; then
                mkdir -p "/cifs/$PC/$Carpeta"
                mount -t cifs "//$IP/$Carpeta" "/cifs/$PC/$Carpeta" -o "vers=1.0,credentials=/home/inukaze/.smb-credenciales,uid=1000,gid=1000,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,domain=REDLOCAL"
            fi

            Carpeta="Inukaze-en-Familia"
            Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1)
            if [ -z "$Montura" ]; then
                mkdir -p "/cifs/$PC/$Carpeta"
                mount -t cifs "//$IP/$Carpeta" "/cifs/$PC/$Carpeta" -o "vers=1.0,credentials=/home/inukaze/.smb-credenciales,uid=1000,gid=1000,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,domain=REDLOCAL"
            fi

            Carpeta="Josmar"
            Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1)
            if [ -z "$Montura" ]; then
                mkdir -p "/cifs/$PC/$Carpeta"
                mount -t cifs "//$IP/$Carpeta" "/cifs/$PC/$Carpeta" -o "vers=1.0,credentials=/home/inukaze/.smb-credenciales,uid=1000,gid=1000,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,domain=REDLOCAL"
            fi

            Carpeta="Temporal"
            Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1)
            if [ -z "$Montura" ]; then
                mkdir -p "/cifs/$PC/$Carpeta"
                mount -t cifs "//$IP/$Carpeta" "/cifs/$PC/$Carpeta" -o "vers=1.0,credentials=/home/inukaze/.smb-credenciales,uid=1000,gid=1000,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,domain=REDLOCAL"
            fi

    fi

    if [ "$Geremia" = "0" ]; then
            PC="Geremia"
            IP="192.168.1.10"

            Carpeta="Inukaze"
            Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1 | tail -n 1)

            if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then
                sleep 1
                umount -f -l "/cifs/$PC/$Carpeta"
            fi

            Carpeta="Inukaze-en-Familia"
            Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1)
            if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then
                umount -f -l "/cifs/$PC/$Carpeta"
            fi

            # i repeat this part becuase ever left mounted :
            Carpeta="Inukaze"
            Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1 | tail -n 1)

            if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then
                sleep 1
                umount -f -l "/cifs/$PC/$Carpeta"
            fi

            Carpeta="Josmar"
            Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1)

            if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then
                umount -f -l "/cifs/$PC/$Carpeta"
            fi

            Carpeta="Temporal"
            Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1)

            if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then
                umount -f -l "/cifs/$PC/$Carpeta"
            fi
    fi

#execute the follow commands on terminal
# this file is /usr/local/bin/cifshare.sh
#
# First make the script executable
#chmod a+o+x /usr/local/bin/cifshare.sh
#
# Second add to cron
#(crontab -l ; echo "#") | uniq - | crontab -
#(crontab -l ; echo "# Run the follow script every minute :") | uniq - | crontab -
#(crontab -l ; echo "*/3 * * * * /usr/local/bin/cifshare.sh") | uniq - | crontab -
exit 0
Then i execute like "root" the follow commands :
Code:
chmod a+o+x /usr/local/bin/cifshare.sh
(crontab -l ; echo "#") | uniq - | crontab -
(crontab -l ; echo "# Run the follow script every minute :") | uniq - | crontab -
(crontab -l ; echo "*/3 * * * * /usr/local/bin/cifshare.sh") | uniq - | crontab -
i put 3 insted 1 becuase with 1 cron looks like is doing nothing, becuase i turn off during 5 minutes "Edna" and never umount the folder "SSD-Gaby"

Last edited by inukaze; 05-10-2024 at 08:08 PM.
 
Old 05-10-2024, 08:32 PM   #33
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,760

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
Code:
IP="192.168.1.10" ; PC="Geremia"
Carpeta="Inukaze" ; Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1) ; if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then umount -f -l "/cifs/$PC/$Carpeta"; fi
Carpeta="Inukaze-en-Familia" ; Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1) ; if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then umount -f -l "/cifs/$PC/$Carpeta"; fi
Carpeta="Josmar" ; Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1) ; if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then umount -f -l "/cifs/$PC/$Carpeta"; fi
Carpeta="Temporal" ; Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1) ; if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then umount -f -l "/cifs/$PC/$Carpeta"; fi
# Second PC
IP="192.168.1.11" ; PC="Edna"
Carpeta="SSD-Gaby"  ; Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1) ; if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then umount -f -l "/cifs/$PC/$Carpeta"; fi
I don't think you want to automatically unmount shares every 3 minutes?
 
1 members found this post helpful.
Old 05-10-2024, 09:09 PM   #34
inukaze
Member
 
Registered: Feb 2011
Location: Venezuela - Caracas
Distribution: Slackware64 14.2, Slackware 14.2, Gentoo, Devuan, gNewSense, GoboLinux, Leeenux, Porteus
Posts: 289

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by michaelk View Post
Code:
IP="192.168.1.10" ; PC="Geremia"
Carpeta="Inukaze" ; Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1) ; if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then umount -f -l "/cifs/$PC/$Carpeta"; fi
Carpeta="Inukaze-en-Familia" ; Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1) ; if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then umount -f -l "/cifs/$PC/$Carpeta"; fi
Carpeta="Josmar" ; Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1) ; if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then umount -f -l "/cifs/$PC/$Carpeta"; fi
Carpeta="Temporal" ; Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1) ; if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then umount -f -l "/cifs/$PC/$Carpeta"; fi
# Second PC
IP="192.168.1.11" ; PC="Edna"
Carpeta="SSD-Gaby"  ; Montura=$(findmnt | grep "//$IP/$Carpeta" | awk '{print $1,$2}' | cut -b 7- | cut -d " " -f 1) ; if [ "$Montura" = "/cifs/$PC/$Carpeta" ]; then umount -f -l "/cifs/$PC/$Carpeta"; fi
I don't think you want to automatically unmount shares every 3 minutes?
i forget delete that part from cifs_stop () { . . . } XD
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting crontab to ping gateway every minute moses0404 Linux - Newbie 10 02-25-2013 09:29 AM
[SOLVED] Configured Cron job executed every hour is instead executed every minute for 10m markings Linux - Software 4 05-13-2012 05:43 PM
I cannot ping with command 'ping IP' address but can ping with 'ping IP -I eth0' sanketmlad Linux - Networking 2 07-15-2011 05:32 AM
crontab: minute hour or hour minute anon091 Linux - Newbie 2 11-04-2009 03:09 PM
want to run program every minute, crontab???? poj Linux - General 4 09-19-2005 04:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration