Search Results

Search: Posts Made By: drew77
Forum: Ubuntu 04-11-2019
20,377
Posted By drew77
I am thoroughly confused. I will stick with...
I am thoroughly confused.

I will stick with my tput script.

It fulfills my needs and is not overly complex.

When you say "install" what exactly do you mean.

I understand it as

1....
Forum: Ubuntu 04-11-2019
20,377
Posted By drew77
I know you are catching some zzzs, so maybe...
I know you are catching some zzzs, so maybe someone else can solve a mystery.

I have no Colour_test.sh.

Where did that come from?
Forum: Ubuntu 04-11-2019
20,377
Posted By drew77
Did so. ----- Results, file missing: ...
Did so.

-----
Results, file missing:

-----
Results, file missing:

-----
Results, file missing:

-----
Results, file missing:

-----
Results, file missing:
...
Forum: Ubuntu 04-11-2019
20,377
Posted By drew77
I renamed it back to orig name. my-hilite.sh...
I renamed it back to orig name.

my-hilite.sh

-----
Results, file missing:
/home/andy/bin/my-hilite.sh: line 24: my-hilite: command not found

-----
Results, file present:...
Forum: Ubuntu 04-11-2019
20,377
Posted By drew77
andy@7_~/bin$ pwd /home/andy/bin ...
andy@7_~/bin$ pwd
/home/andy/bin
andy@7_~/bin$ printf '%s\n' "$PATH"
/home/andy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin...
Forum: Ubuntu 04-11-2019
20,377
Posted By drew77
Something is missing in the code. Hilite.sh ...
Something is missing in the code.

Hilite.sh

-----
Results, file missing:
/home/andy/bin/Hilite.sh: line 24: my-hilite: command not found

-----
Results, file present:...
Forum: Ubuntu 04-10-2019
20,377
Posted By drew77
I am using mate terminal. I found another...
I am using mate terminal.

I found another way which is easier to use and tput is part of the ncurses package and is supplied with most Linux distributions.
...
Forum: Ubuntu 04-10-2019
20,377
Posted By drew77
Using color in scripts
This is supposed to colorize.

But it outputs this

3[0;32mFile exists.3[0m


GREEN='3[0;32m'
RED='3[0;31m'
WHITE='3[0;37m'
RESET='3[0m'...
Forum: Ubuntu 04-07-2019
14,542
Posted By drew77
Your cutdowns add nothing. If it bothers...
Your cutdowns add nothing.

If it bothers you so much, I recommend not responding.

I am not perfect and neither are you.
Forum: Ubuntu 04-07-2019
14,542
Posted By drew77
Added fi. if [ "$1" = "-m" ] ; then ...
Added fi.

if [ "$1" = "-m" ] ; then
until=`expr 60 \* $2`
until=`expr $until + $now`
sec_rem=`expr $until - $now`
echo "-m"
if [ $sec_rem -lt 1 ]; then
...
Forum: Ubuntu 04-06-2019
14,542
Posted By drew77
test.sh -s 9 /home/andy/bin/test.sh: line 95:...
test.sh -s 9 /home/andy/bin/test.sh: line 95: syntax error: unexpected end of file

I feel that the syntax error is kind of vague?
Forum: Ubuntu 04-06-2019
14,542
Posted By drew77
#!/bin/bash # if [ "$#" -lt "2" ] ; then...
#!/bin/bash
#

if [ "$#" -lt "2" ] ; then
echo "Incorrect usage ! Example:"
echo './CountDown.sh -d "Jun 10 2011 16:06"'
echo 'or'
echo './CountDown.sh -m 90'
...
Forum: Ubuntu 04-06-2019
14,542
Posted By drew77
Countdown timer with seconds
I would like this to work with seconds as well.

#!/bin/bash
#

if [ "$#" -lt "2" ] ; then
echo "Incorrect usage ! Example:"
echo './CountDown.sh -d "Jun 10 2011 16:06"'
...
Forum: Ubuntu 04-06-2019
9,975
Posted By drew77
I forgot that it is sending date both before and...
I forgot that it is sending date both before and after computer suspension.
Forum: Ubuntu 04-05-2019
9,975
Posted By drew77
I got Writeable. I went ahead and used this...
I got Writeable.

I went ahead and used this which works.

echo $(date +%I:%M:%S_%D) >> /home/andy/Downloads/systemd_suspend_test_err.txt
exec 2>>...
Forum: Ubuntu 04-05-2019
9,975
Posted By drew77
Permission denied
Trying to get date into the txt file.

It says

Permission denied.

echo $(date +%I:%M:%S_%D) >> /tmp/systemd_suspend_test_err.txt
exec 2>> /tmp/systemd_suspend_test_err.txt

if [ "${1}" =...
Forum: Ubuntu 04-05-2019
19,866
Posted By drew77
ls '#10_Envelope_With_Sender_Address.odt' ...
ls
'#10_Envelope_With_Sender_Address.odt'
2019-excel-calendar-planner-12.2.xls
5160_LABEL_2_And_5_eights_X_1_inch.doc
6_Ways_God_Blesses_A_Broken_Heart.odt
AA_Log.odt
...
Forum: Ubuntu 04-05-2019
29,285
Posted By drew77
I added a line to play a sound file. The...
I added a line to play a sound file.

The error text file says

VLC is not supposed to be run as root. Sorry.
If you need to use real-time priorities and/or privileged TCP ports
you can use...
Forum: Ubuntu 04-05-2019
19,866
Posted By drew77
18351179 -rw-rw-r-- 1 andy andy 10434 Mar 11...
18351179 -rw-rw-r-- 1 andy andy 10434 Mar 11 22:17 #10_Envelope_With_Sender_Address.odt
18351660 -rw-rw-r-- 1 andy andy 61440 Mar 21 15:36 2019-excel-calendar-planner-12.2.xls
18352704...
Forum: Ubuntu 04-04-2019
19,866
Posted By drew77
Thanks. Most of my files are relatively small.
Thanks. Most of my files are relatively small.
Forum: Ubuntu 04-04-2019
19,866
Posted By drew77
Already tried that. It's in my 1st post. I...
Already tried that. It's in my 1st post.

I could consider other compression programs.

Tar works. Have to give zip the heave ho. :-)

tar cvf archive_name.tar *.sh On_Resume

Size is double,...
Forum: Ubuntu 04-04-2019
19,866
Posted By drew77
Removed the *. No change. Even tried it...
Removed the *.

No change.

Even tried it with other no extension files.

Maybe it's a conspiracy. :-)
Forum: Ubuntu 04-04-2019
19,866
Posted By drew77
andy@7_~/bin$ ls On* On_host.sh On_Resume ...
andy@7_~/bin$ ls On*
On_host.sh On_Resume
andy@7_~/bin$ What is even stranger is that it zips up a On_Resume.sh which is not even present in the directory or anywhere else?

Update:

On_Resume...
Forum: Ubuntu 04-04-2019
19,866
Posted By drew77
Zip a file with no extension
I would like to include in my zip file a particular file name On_Resume which has no file extension.

This does not work.

zip -u Ubuntu_Documents.zip *.txt *.doc *.rtf *.html *.png *.pdf *.odt...
Forum: Ubuntu 04-02-2019
29,285
Posted By drew77
I thought the temp files were automatically...
I thought the temp files were automatically deleted upon reboots.?
Showing results 1 to 25 of 199

 
All times are GMT -4. The time now is 07:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy