startup script to launch terminal and run command

Shmu26

Member
Joined
Dec 11, 2018
Messages
95
Reaction score
32
Credits
624
I am on Manjaro KDE and I want a startup script that will launch the xfce4-terminal and run a command in it, and stay open. The command I want to run in it is
watch -n 180 "hebcal -T"
This command says to repeat hebcal -T every 180 seconds.
hebcal -T prints the current Hebrew date in the terminal.
So this is what I have in my script file:
#!/bin/bash
sleep 5 && xfce4-terminal --execute 'bash -c watch -n 180 "hebcal -T"' --title=title --hold
And it's not right because I get an error message
Failed to execute child
Failed to execute child process "bash -c watch -n 180 "hebcal-T"': Failed to execve: No such file or directory
 


@Shmu26 G'day.

Where is

hebcal

installed, eg /usr/bin/hebcal or other?

If you put the full path to it in your script it will likely work.

Cheers

Wizard
 
@Shmu26 G'day.

Where is

hebcal

installed, eg /usr/bin/hebcal or other?

If you put the full path to it in your script it will likely work.

Cheers

Wizard
which hebcal  ✔
/usr/bin/hebcal
So I tried the script like this:
#!/bin/bash
sleep 5 && xfce4-terminal --execute 'bash -c watch -n 180 "/usr/bin/hebcal -T"' --title=title --hold
but I am getting the same error.
 
OK, that leaves you to wait for the experts, I am afraid :)

Wiz
 

Members online


Top