Search Results

Search: Posts Made By: dcaccount
12,150
Posted By dcaccount
Thanks
Thanks
12,150
Posted By dcaccount
How to check internet connection?
Hello,
I need a simple shell script that returns a value if the system is internet connected and a different value if the system is not connected.

Can anyone please help?
Thanks
Daniele
1,742
Posted By dcaccount
It works! How can I "pipe through sh"? Shall I...
It works!
How can I "pipe through sh"? Shall I replace print with sh?

Thanks,
daniele
1,742
Posted By dcaccount
I will try it tonight at home (now I am already...
I will try it tonight at home (now I am already in the office, Italy) and I will let you know.

In the meanwhile thank you so much.

---------- Post updated at 01:11 PM ---------- Previous update...
1,742
Posted By dcaccount
Thanks for replying. I apologize, being a...
Thanks for replying.
I apologize, being a newbie I understand slowly.
You wrote "the oldest files' sizes should sum up to $GG, and, when below, be deleted?".

Actually every time I launch the...
1,742
Posted By dcaccount
Thanks for the kind replies. It is a bit...
Thanks for the kind replies.

It is a bit different, maybe I have been not 100% clear. Sorry.

I need to identify the oldest xx mb of files (or the oldest xx files if it is not possible to...
1,742
Posted By dcaccount
Help on a fairly complicated shell script
Hello,

also with the help of some great users of this forum, I have created following shell script.


MM=120
GG=5000

# get size of directory
szm=$(du -s --block-size M ./192.168.1.xxx |...
1,425
Posted By dcaccount
Thanks for helping, it works!
Thanks for helping, it works!
1,425
Posted By dcaccount
Help on simple shell script
Hello,

I need to create one very simple shell script that checks if the first character of the file ./pump.txt is 0 and in that case gives a message.
If the first character is instead 1, it does...
977
Posted By dcaccount
When I invoke crontab, I am logged as root. ...
When I invoke crontab, I am logged as root.

I have not understood if crontab can include more than one instructions and if it remains active after a reboot.

Thanks
977
Posted By dcaccount
Thanks for your attention. I am using...
Thanks for your attention.
I am using Openmediavault for Raspberry pi3 which I have configured as a ftp backup server of my network video recordings.
The root commands contains these commands and...
977
Posted By dcaccount
Question on crontab
Hello,

I have scheduled the execution of a file (delete_oldv02) every hour with crontab and it works perfectly. See below the instruction written.

0 */1 * * * /home/delete_oldv02...
982
Posted By dcaccount
Thanks everybody for helping. I have written...
Thanks everybody for helping.
I have written the entire script, inserting a pause to check the directory size before delete and to debug it.

Can anyone please check if it is correct?
Thanks.
...
982
Posted By dcaccount
---------- Post updated at 12:38 AM ----------...
---------- Post updated at 12:38 AM ---------- Previous update was at 12:38 AM ----------

Thank you so much, I will try and advise!

---------- Post updated at 12:40 AM ---------- Previous...
982
Posted By dcaccount
Help on simple shell script
Hello,

I am running openmediavault on my Raspberry and I would like to use it as a backup FTP server of snapshots taken from my IP cams.

So I get the network recorder to upload every 3 seconds...
Showing results 1 to 15 of 15

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