#! /bin/bash
cd ~/TEMP;pal > pal.out; cat pal.out addon > result ; more result
runs fine from a command line, but when I add it to my Plasma Autostart>Automatically Started Applications nothing happens. Any suggestions will be appreciated.
First of all, 42.1 is no longer supported.
You should better upgrade to 42.2.
And I tested autorunning scripts on Plasma startup in 42.2 just a few weeks ago, it definitely works.
How exactly did you add it?
If you just add a script, it will not be run in a terminal window, so your “more result” won’t work and of course “nothing happens”.
Except that the files pal.out and result should get created of course.
Try to add something like “kdialog --msgbox Hello” to see whether the script is run or not, and/or use something like “konsole -e more result” or “konsole --hold -e cat result” or even “xterm -hold -e cat result”. Or use e.g. xmore (you may have to install that though) instead of more to display your result file, or “kdialog --textbox result”.
Also, is your “pal” command in the path? What exactly is that and where is it located?
If that isn’t found, the script won’t work of course.
Btw, didn’t you ask a similar question not too long ago?
Thanks for the speedy response. Yes I thought I had a similar request not too long ago but when I searched I got only two hits, not mine, and they were for very old versions. Sorry for the duplication. I’m 73 years old and resist change but this time I will rewrite the script using this millennium’s suggestions.
My apologies. I will continue with your suggestion as soon as I unravel the terrible mess I created by invoking a zypper dup after your warning that 42.1 had lapsed. (I was not aware of it having just updated 42.1.) I used the method in How to upgrade from openSUSE Leap 42.1 to 42.2 - Linux Kamarada. I have never done a dup since starting with version 9.1, installing new versions on a separate partition and copying necessary files from my old /home. Thanks for the steadfast support.
Pal is a simple CLI calendar appointment utility that shows a calendar and lists upcoming events. Installed with compat-readline4-4.3-3.i586.rpm and pal-0.3.4-1rh9.i386.rpm. I have used it since openSUSE 11. As for the error, it was missing something LIKE compat-readline-xxx.so.4 that was not available from the repositories. I gave up and removed it and plan to replace it with calcurse which is in the 42.2 repositories and does work. I could re-install it and report back but I am without a fully functional system and travelling shortly. It would have to wait.
I am sure calcurse will work but I have to convert my pal data files to the calcurse format before my travel, and learn the new calcurse commands. Thanks for all the assistance.
Well, that’s a (old) RedHat package, and it is 32bit too. (there is no 32bit compat-readline4 in Leap AFAICS, so the question would also be where you got that from…)
Bound to cause problems, it’s actually just “luck” that it worked before I suppose.
Without the exact error message it’s hard to say whether it would be fixable. Well, compiling the source code yourself would be an option, but even that may need patching to get it to build. It’s available here it seems: http://palcal.sourceforge.net/ (actually the current version is 0.4.2, not 0.3.4, but even that is 9 years old…)
But yes, using something that is in the distribution will definitely be less pain in the long run…
Was quite easy to do, the source code already comes with a .spec file to create an rpm package (I did have to make some adjustments though to get it to build).