Results 1 to 3 of 3

Thread: Automatic Appointment

  1. #1

    Automatic Appointment

    I created this shell script so that it will remind/ give an alert all users From Monday - Friday at 8:15 that "Good Morning".

    Take input()
    echo "Daily Appointment"
    read appointment
    if [! -f $appointment]; then
    echo "Appointment does not exists, creating $appointment database"
    echo "Appointment Application database file" > $appointment
    echo "Start reading Appointment schedule" > /etc/schedular.$$
    echo -n "Good Morning"
    read na
    echo -n "8:15"
    read ti
    echo -n "is data okey (y/n)?"
    read ans
    if [$ans=y -o $ans=Y]; then
    recno = "expr $recno + 1
    echo "$rechno. $na $ti" >> /etc/schedular.$$

    Is this the right way to write a shell script?, what can I do to make it work properly.
    Thank you for your respons and be blessed.

  2. #2

    Arrow Automatic appointment

    I am new to Linux, I am learning shell scripts.
    I wrote another shell script which will alert/ give message from Monday to Friday(5 weekdays) at 8:15 that "Welcome to Work Place"

    HOUR='date | grep {'echo $4'}'
    MINUTE='date |grep {'grep $5'}'
    DAY='date | grep ('cal[Mon - Fri]')'
    while true; do
    if [$HOUR -eq 8] -a [$MINUTE -eq 15]; then
    echo $DAY "Welcome to work place"
    sleep 13500s

    I got the error message that /date command not found on line 2, 3 and line 4.
    I need your assistance and be blessed.

  3. #3
    When you are setting a variable equal to the output of a command, the command must be surrounded by back ticks ` not single quotes '

Similar Threads

  1. How to make an Automatic appointment
    By Jesca Hagaze in forum Linux - General Topics
    Replies: 24
    Last Post: 05-24-2006, 12:45 AM
  2. Configure and use Automatic Updates (XP)
    By RickDev in forum Windows - General Topics
    Replies: 9
    Last Post: 08-19-2005, 08:45 AM
  3. Automatic ESSID pickup
    By countach44 in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 05-20-2005, 11:21 PM
  4. automatic updates
    By elovkoff in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 03-11-2005, 09:20 PM
  5. Automatic login without gdm/kdm
    By atheist_deity in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 08-13-2003, 07:00 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts