Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 462
  • Last Modified:

How to create this file or run it

I'm thinking to create new cronjob below but I no idea how to create it

/home/sybase/local/bin/manualSyncTest_DBS  Input1  Input2 > /home/sybase/edt_local/log/manualSyncTest_DB/crontabManualSync.log

anyway, can I run the command below  without using cronjob ?
manualSyncTest_DBS  Input1  Input2 > /home/sybase/edt_local/log/manualSyncTest_DB/crontabManualSync.log
0
motioneye
Asked:
motioneye
2 Solutions
 
manekshCommented:
Hi,

May be write a small shellscript to execute that command and schedule the script in cron?


Regards
Maneksh
0
 
Joe WoodhousePrincipal ConsultantCommented:
If that's a custom script that does Sybase stuff, you'll need to make sure the cron job picks up the full sybase environment.

ie. depending on your shell, it would probably look something like this:

su - sybase -c /home/sybase/local/bin/manualSyncTest_DBS [... etc ...]
0
 
jlsilva01Commented:

Create a script (ie. script.sh) e put this code inside him.

manualSyncTest_DBS  Input1  Input2 > /home/sybase/edt_local/log/manualSyncTest_DB/crontabManualSync.log

So after this, put this file into crontab (crontab -e) like example:

00 5 * * * /sybase/develop/script.sh

You have logged in as sybase user.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now