Go to advanced search

by aristosv
Tue Jul 21, 2015 1:23 pm
Forum: General discussion
Topic: cron and lftp issue
Replies: 3
Views: 1079

Re: cron and lftp issue

No more suggestions?
by aristosv
Mon Jul 20, 2015 3:45 pm
Forum: General discussion
Topic: cron and lftp issue
Replies: 3
Views: 1079

Re: cron and lftp issue

thanks for the suggestion. but it didn't work :(
by aristosv
Mon Jul 20, 2015 4:03 am
Forum: General discussion
Topic: cron and lftp issue
Replies: 3
Views: 1079

cron and lftp issue

I have the following scripts running on raspbian. start #!/bin/bash /root/config/commands 2>&1 > /root/log/$HOSTNAME.log commands #!/bin/bash source /root/config/variables echo TestLine /usr/bin/lftp ftp://user:pass@host.com -e "set ftp:ssl-allow no ; set net:reconnect-interval-base 5 ; set net:max-...
by aristosv
Sat Jul 18, 2015 11:12 am
Forum: General discussion
Topic: stop the operating system from getting corrupted
Replies: 11
Views: 1866

stop the operating system from getting corrupted

I have 45 raspberry pi's running raspbian. Randomly from time to time some of them stop working and I have to format the micro sd's and re-install raspbian. Some times the micro sd's get corrupted during a reboot, some times after a power outage, and some times simply while the operating system is i...
by aristosv
Sun Jul 05, 2015 6:25 am
Forum: General discussion
Topic: suppress the command output issue
Replies: 1
Views: 974

suppress the command output issue

I have a bash script that restarts a music player, and then runs another bash script that also restarts the music player. start #Stop Media /usr/bin/killall /usr/bin/mpg123 #Start Media /usr/bin/mpg123 -Z -q -f $volume $localmedia/* & /root/config/commands 2>&1 > /root/log/$HOSTNAME.log commands #St...
by aristosv
Sun Jul 05, 2015 5:16 am
Forum: General discussion
Topic: cron adds lines of text to my log file
Replies: 5
Views: 625

Re: cron adds lines of text to my log file

cat and new mail syntax, both worked. thanks for your help.
by aristosv
Sat Jul 04, 2015 9:04 pm
Forum: General discussion
Topic: cron adds lines of text to my log file
Replies: 5
Views: 625

Re: cron adds lines of text to my log file

you are right, they are not in the log file.
this is how i sent the email

/bin/more $logdir/$HOSTNAME.log | /usr/bin/mail -s "$HOSTNAME Report" $emailaddress

Other than that I put this line in crontab "@daily /root/daily" just like I run the command manually.
by aristosv
Sat Jul 04, 2015 7:35 pm
Forum: General discussion
Topic: cron adds lines of text to my log file
Replies: 5
Views: 625

cron adds lines of text to my log file

I have this bash script that runs a few commands, creates a log file, and sent's me an email with the contents of this log file. Whenever I run the bash script manually, the output is exactly how I want it. Whenever I run it using cron, it adds the following, at the top of the log file: ::::::::::::...
by aristosv
Wed Jun 10, 2015 2:19 pm
Forum: Raspberry Pi OS
Topic: unattended scheduled fsck
Replies: 21
Views: 2865

Re: unattended scheduled fsck

How do you define the "-y" when using the "sudo touch /forcefsck" method? aristov, From the fsck man page: -y For some filesystem-specific checkers, the -y option will cause the fs-specific fsck to always attempt to fix any detected filesystem corruption automatically. Sometimes an expert may be abl...
by aristosv
Wed Jun 10, 2015 12:57 pm
Forum: Raspberry Pi OS
Topic: unattended scheduled fsck
Replies: 21
Views: 2865

Re: unattended scheduled fsck

As per this article if I run "sudo touch /forcefsck" and errors are found, I will get a prompt asking me if its OK to fix them. Like I said I only have SSH access, so any prompts cannot be answered. This will simply block me from accessing the OS remotely. How can I configure this to fix the problem...
by aristosv
Wed Jun 10, 2015 11:20 am
Forum: Raspberry Pi OS
Topic: unattended scheduled fsck
Replies: 21
Views: 2865

Re: unattended scheduled fsck

Come on, there has to be a better way. It can't just be a "don't rely on the pi" answer. There must be things I can do to set up a reliable Raspbian computer? Perhaps use better SD cards? Or use USB sticks? Frequent maintenance cron jobs? Use batteries as a UPS, to avoid power offs? This is really w...
by aristosv
Wed Jun 10, 2015 9:29 am
Forum: Raspberry Pi OS
Topic: unattended scheduled fsck
Replies: 21
Views: 2865

Re: unattended scheduled fsck

Are you saying that there's no point in scanning the file system every time it reboots, and that It will do that by itself if it detects a problem?

So there's really nothing I can do to improve the reliability of Raspbian and the SD card it's running on?
by aristosv
Wed Jun 10, 2015 9:12 am
Forum: Raspberry Pi OS
Topic: unattended scheduled fsck
Replies: 21
Views: 2865

Re: unattended scheduled fsck

Thanks for your reply.

Can you confirm that this will not ask any questions and wait for an answer?
It will just scan and fix?
by aristosv
Wed Jun 10, 2015 8:23 am
Forum: Raspberry Pi OS
Topic: unattended scheduled fsck
Replies: 21
Views: 2865

unattended scheduled fsck

I have a few raspberry pi's located at remote locations. I don't have physical access on them, only through SSH. These raspberry pi's get restarted every 24 hours. Some times I get error message from them that they have some issues with their file systems. How can I schedule an unattended check on t...
by aristosv
Wed May 27, 2015 2:59 am
Forum: Raspberry Pi OS
Topic: Input/output error remote raspbian
Replies: 0
Views: 431

Input/output error remote raspbian

I have a raspberry pi running raspian, located in another town (no physical access obviously) that sends me a daily report on various operating system parameters (temp, avail. space, resources etc). I have ssh access on this pi. For the past two days I have been receiving the following information: ...
by aristosv
Mon Apr 13, 2015 12:05 pm
Forum: General discussion
Topic: pulse eight cec adapter configuration updated
Replies: 1
Views: 849

pulse eight cec adapter configuration updated

I am running 2015-02-16-raspbian-wheezy on a RPi2. I have installed Kodi and whenever I start it, a message pops-up saying:

"pulse eight cec adapter configuration updated"

I know I can disable the cec adapted, but I would rather not. Any idea why that message pops up on every boot?
by aristosv
Tue Apr 07, 2015 7:14 pm
Forum: General discussion
Topic: Controling music on multiple pi's
Replies: 1
Views: 432

Controling music on multiple pi's

Is there a way i can control the music playing on multiple raspberry pi's?

I have a few of them playing music from their local sd card and i was wondering if i could control the playlist on all of them from a single interface.

Thanks
by aristosv
Sun Apr 05, 2015 3:39 pm
Forum: General discussion
Topic: Clone to slightly smaller SD
Replies: 9
Views: 2887

Clone to slightly smaller SD

I create an image of my RPi's SD card using Win32DiskImager. While working on the Pi, I never expanded the operating system to use the whole SD, hoping that this would keep the size of the image file smaller. Now I want to copy that image on another SD card, which was supposed to be the same size as...
by aristosv
Tue Mar 24, 2015 4:57 am
Forum: General discussion
Topic: reverse nat ssh tunnel - open more that one port?
Replies: 0
Views: 437

reverse nat ssh tunnel - open more that one port?

I will be setting up a few raspberry pi's in various locations, and they will be creating reverse nat ssh tunnels to my ssh server. I need to set up a monitoring server at the server's location to monitor the raspberry pi's through the ssh server. The monitoring agent that will be installed on the r...
by aristosv
Tue Mar 17, 2015 7:10 pm
Forum: General discussion
Topic: raspberry pi vpn tunnel
Replies: 3
Views: 2472

raspberry pi vpn tunnel

I need to setup a vpn tunnel between a vpn server and a raspberry pi.
Can anyone point me to a quick guide on how to achieve this? It has to be a split tunnel.

I tried to do this with openvpn server, i downloaded the ovf appliance for vmware workstation but it seems my hardware doesn't support it.
by aristosv
Wed Mar 04, 2015 6:40 am
Forum: General discussion
Topic: outputting only the temperature number
Replies: 7
Views: 1658

Re: outputting only the temperature number

thank you very much
by aristosv
Wed Mar 04, 2015 5:35 am
Forum: General discussion
Topic: outputting only the temperature number
Replies: 7
Views: 1658

Re: outputting only the temperature number

thanks for this. can i also remove the "'C" so i just get a number?
by aristosv
Wed Mar 04, 2015 4:38 am
Forum: General discussion
Topic: outputting only the temperature number
Replies: 7
Views: 1658

outputting only the temperature number

I get the temperature of my raspberry pi using the following command

Code: Select all

/opt/vc/bin/vcgencmd measure_temp
Is there a way to strip the word "temp=" so that I will only get the temperature number?

For example

Code: Select all

44.9'C
Thank you
by aristosv
Tue Feb 10, 2015 11:35 am
Forum: Raspberry Pi OS
Topic: How can I set a couple of variables
Replies: 4
Views: 683

Re: How can I set a couple of variables

/etc/environment does not exist.
/etc/profile exists so I put the variables there.

When I run "echo $TPORT" its working properly. But when I use the variable in a bash script, it does not work.
by aristosv
Tue Feb 10, 2015 5:47 am
Forum: Raspberry Pi OS
Topic: How can I set a couple of variables
Replies: 4
Views: 683

How can I set a couple of variables

I have these 2 variables I need to set in Raspbian. I need them to be applied for everyone and everything on the operating system. I have yet to find a clear answer as to where and how should I specify these variables.

TPORT="5001"
GROUPNAME="ClientX"

Thanks for your help.

Go to advanced search