• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved Linux SED command doesn't work with task scheduler

NicolasUni

Basic Pleskian
Server operating system version
Debian 11.6
Plesk version and microupdate number
18.0.50
Dears all,

I face a issue : linux sed command is not recognized by plesk task scheduler…

Any idea ?

Thank you for your help

Best regards,

Nicolas

Quote Reply
Report
 
You can if you're using it in a cronjob, but you need to provide the full path for example /usr/bin/sed (you can find the location of it by SSHing into the server and typing which sed)
 
Hello scsa 20,

Could you be more specific please ?

My actual command wich runs well within ssh is :

sed -i -e 's/67/Bas-Rhin/g' -e 's/68/Haut-Rhin/g' /var/www/vhosts/exemple.com/httpdocs/wp-content/uploads/files/flux-uuuuu.csv

How do you modify it ?

Regards,
 
Bash:
/usr/bin/sed -i -e 's/67/Bas-Rhin/g' -e 's/68/Haut-Rhin/g' /var/www/vhosts/exemple.com/httpdocs/wp-content/uploads/files/flux-uuuuu.csv
 
Task "/usr/bin/sed -i -e 's/xxxxx " completed with error in 0 seconds, output:
-: line 1: /usr/bin/sed: No such file or directory
 
May be I need to grant /bin/sh to this specific site inn order to unlock this sed command ?
 

Attachments

  • Capture d’écran 2023-02-27 à 22.15.28.jpg
    Capture d’écran 2023-02-27 à 22.15.28.jpg
    97.9 KB · Views: 6
Are you running the scheduled task at the server level or domain level? Creating the task at the system level (Tools & Settings > Scheduled Tasks) gives you a bit more flexibility including which user should be acting as the executor.
 
Dear scsa20, I ve just have a go at it by system level and all goes well !

Thank you, dears scsa20 and kaspar,

Have a good day (or evening or night)

Best regards,

Nicolas
 
Back
Top