The crontab is trying to run a graphical application, but it gets run before the desktop is initialised, therefore the app fails. At this point the boot process stops, there is no PATH, there are no os variables, there are no shares, no smb no cifs, no nothing.
This is also the case with ssh, so when I login I have the prompt, but the os is completely dumb. I have to know where every command is on disk, and I don't.
So surely the easiest way around this is to know where the offending crontab file is, nano/vim and sudo. Without Sudo I can't do anything.
The jumper sounds interesting, os is Jessie based, or at least Debian based. I'll look into that now. Thanks.
Try logging in with ssh and typing this into the command prompt
You should then be able to type in the commands without their full path names.
Hi again,
I have a script that moves files based on filelist:
------------------------------
filelist1=./rated.txt
for file in $(< $filelist1)
do
mv ./$file ./Backup/$file
done
------------------------------
If the file in filelist is not found from the folder the script fails.... (1 Reply)
I am on a sun solaris server and trying to create a script that will test if SFTP is up and running on a remote server (which could be unix or windows).
My thought was to simply invoke sftp and if I get the prompt ofr "Password" then that is an indication that the service is running and I am... (2 Replies)
I can able to SFTP from my web server unix to apps server unix end. but the other way from APPS server to Web server is still asking me the password. I have done same procedure both side. still i am having same problem. Any one help on this. thanks, regards (3 Replies)
Hello all
Im trying to write a script that can get past the "enter password" field.Coming to the details, Im planning to write a script that can actually check for the validity of certificates in websphere. There is a utility "keytool" that helps provide this information.However if we want to... (4 Replies)
Hi Friends,
I don't understand why "a" is always being printed as zero, when I execute the following command.
awk '{if($6||$8||$10||$12==0)a=b=c=d=0;else (a=$5/$6);(b=$7/$8);(c=$9/$10);(d=$11/$12); {print... (6 Replies)
Hello,
I have an ancient HP-UX 11.11 system where I have a logical volume marked stale and I can't get it sync'd. I have tried lvsync and lvreduce/lvextend to no avail. It is just one 4Mb PE on the disk that I can't get current.
# lvdisplay -v /dev/vg00/lvol5 | grep stale
LV Status ... (17 Replies)
Heyas
Just asking, is there a better to make sure the script will use the binary and not some alias?
LS=$(locate "ls"|grep /bin/ls$ | head -n 1)
Thank you. (7 Replies)
Hi,
Below command works fine when we have other files apart from hello.txtls | ggrep -v hello* | xargs rm -rfBut, if there is only one file i.e hello.txt the rm command does not find anything to delete and the script hangs.
While there could be trivial ways to check using if conditions if... (6 Replies)