1. cpointcc
  2. RO CSVI
  3. Thursday, 23 May 2019
  4.  Subscribe via email
Good day,

I am wondering if you can help me decipher a process. I know to set up run a cron job for the imports. What I don't see is how to do a multiple tasks.

I'd like to run the maintenance process for Virtuemart to Empty Database, then run a category import, then run a product import all in one step. Is there a way to accomplish this?

Please advise.
Accepted Answer Pending Moderation
Hi Roland,

Thanks for your replies. I will see what I can find out from our server staff.

Have a great weekend.

Sue
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Hello,

If you want to create the bash script, all you need is a text editor where you write:
command1
command2
command3
etc.

Save the file as a text file with a name of your preference, for example myjobs.sh and schedule the cronjob to run that file. How to run that file depends on your hosting provider, so you may need to ask them for specifics.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Hello,
Do you have any samples of this?

We do not have any sample or document on creating bash scripts. You can check Setting up a cron job document to know about cron for maintenance, import and export.

I'm also wondering if you can create a multi-task project for the maintenance to do the same?

As of now you can run one cron command for one maintenance task. So you can split your maintenance task into multiple cron commands and run them as cron at a small time difference.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
Do you have any samples of this? I'm also wondering if you can create a multi-task project for the maintenance to do the same?
  1. more than a month ago
  2. RO CSVI
  3. # 4
Accepted Answer Pending Moderation
Hello,

There are 2 ways to go about it. What you call a macro is actually called a bash script. This is command-line scripting in which you create a file ending with .sh for example myjobs.sh. In this file you write each command you want to execute on a line of it's own. You setup the cron job to execute this script. How to do that depends on your hosting company.

The other way to go about it is to schedule a cron job for each operation and separate them based on the time they are triggered.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 5
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!