Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Doubt about CRON

Featured Replies

I have to schedule some job on every alternate Thursday with Cron. I am not sure How to schedule in job in above case ?

Can anyone help me please ??

You can set the crontab to run every Thursday and then let the script decide what week it is.

 

e.g

 

*	*	*	*	4	./my-cron-script.sh

 

#!/bin/sh

WK=`date +%W`
ON_WK=`expr $WK % 2`

if [ $ON_WK = 1 ]; then
   echo 'Hello World';
else
   echo 'Goodbye World';
fi

 

There are other methods posted up on google as well.

  • 2 weeks later...
  • Author

You can set the crontab to run every Thursday and then let the script decide what week it is.

 

e.g

 

*	*	*	*	4	./my-cron-script.sh

 

#!/bin/sh

WK=`date +%W`
ON_WK=`expr $WK % 2`

if [ $ON_WK = 1 ]; then
   echo 'Hello World';
else
   echo 'Goodbye World';
fi

 

There are other methods posted up on google as well.

thanks..........!!!!!!

NP, make sure you set the script to only run once, that code above i posted will run every second of every hour on a thursday...

 

0	0	*	*	4	

 

is probably what you're after

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.