Search Results

Search: Posts Made By: gjws
4,375
Posted By gjws
Thank you for the well though out explanation, I...
Thank you for the well though out explanation, I really appreciate you taking the time to write it. As someone who only dabbles in Linux very occasional it can get very daunting :)

---------- Post...
4,375
Posted By gjws
Thank you, it's good to know the best practice....
Thank you, it's good to know the best practice. It's interesting that there is an error when using DASH, but no error when using BASH.

I wonder why systems don't link /bin/sh to BASH rather than...
4,375
Posted By gjws
As I said, it's great to learn new things :) ...
As I said, it's great to learn new things :)

Thank you, the script now runs without errors, and even better, I understand why!
4,375
Posted By gjws
Hmmmmm, there is a space before the #! ...
Hmmmmm, there is a space before the #!



-rwxr-xr-x 1 root root 813992 Sep 26 06:55 /bin/bash
-rwxr-xr-x 1 root root 88340 Mar 30 2012 /bin/dash
lrwxrwxrwx 1 root root 4 Sep 26 06:55...
4,375
Posted By gjws
Direct from the command line eg. "sudo ./ip...
Direct from the command line eg. "sudo ./ip full"
4,375
Posted By gjws
/bin/sh points to dash. This is a default...
/bin/sh points to dash.

This is a default raspbian system, running on a raspbery pi. I haven't changed anything really, and /bin/bash is not a symlink so it "should" be running correctly I guess?...
4,375
Posted By gjws
Well look at that, no more errors! Thank you...
Well look at that, no more errors!

Thank you very much sea, I'll complete full testing once the POS is online and post up how I go.

Thank you everyone for your help, I really appreciate it.
4,375
Posted By gjws
OK well that has made a huge difference, I can't...
OK well that has made a huge difference, I can't test 100% until the POS is back online but it appears to have fixed most of the problem. Now when I run the script I do not see the error any more...
4,375
Posted By gjws
I just gave that a try and no difference...
I just gave that a try and no difference unfortunately.
4,375
Posted By gjws
I edited the script using nano. The text above I...
I edited the script using nano. The text above I ran through notepad to remove passwords before posting it here so maybe notepad has messed up the text?

Actually thinking about it, I may have...
4,375
Posted By gjws
Shell script worked correctly until I added variable :(
Hi everyone,

I have been using a shell script for the last 6 months to copy a database from a POS system, then analyse the database and print the current sales total. This has worked flawlessly,...
Forum: IP Networking 07-22-2014
2,274
Posted By gjws
If you want to learn about networking, I would...
If you want to learn about networking, I would strongly suggest setting up a virtual lab and playing around with the devices. Have a look at Cisco Modeling Labs:

Cisco Modeling Labs - Cisco...
Forum: IP Networking 07-22-2014
1,699
Posted By gjws
Like Jim says, the main purpose would be security...
Like Jim says, the main purpose would be security enforcement. It is very typical for an application to make use of a web server, an application server, and a database server. The Web server is...
Forum: IP Networking 07-22-2014
2,035
Posted By gjws
I believe that DLNA uses Multicast to advertise...
I believe that DLNA uses Multicast to advertise itself, so depending on the router you are using you may be able to configure something like IGMP to enable multicast routing.
Forum: IP Networking 07-22-2014
3,237
Posted By gjws
I guess the first question is why in the world...
I guess the first question is why in the world would you connect a cable between the WAN and LAN port?

At a guess I would say yes, the DHCP Daemon would certainly respond to DHCP Discover requests...
6,523
Posted By gjws
Firstly, if I sounded dismissive I certainly did...
Firstly, if I sounded dismissive I certainly did not intend my post to appear so, I genuinely appreciate people sharing their experience freely with novices like myself. So Chubler_XL if my post came...
6,523
Posted By gjws
Thanks, but I think you missed the point of my...
Thanks, but I think you missed the point of my post. I need to convert the date that is contained in the file, in to a day of the week. I do not need to know the current day of the week according to...
6,523
Posted By gjws
Thank you very much for your help guys. I've...
Thank you very much for your help guys.

I've been playing around with a way to get this done with a "while read line" approach:

#!/bin/bash

while read line
do
DOW=`awk '{print $1}'`
...
6,523
Posted By gjws
Reading in MM/DD/YY, find Day of Week
Hi everyone,

I have a shell script that merges many files down in to one, then removes unwanted lines, that part is working fine:

#!/bin/bash
FILES=/home/pi/temp/qbd/*
for f in $FILES
do
...
2,560
Posted By gjws
You sir, are a GENIUS!!!!! Those 2 small...
You sir, are a GENIUS!!!!!

Those 2 small letter made all the difference, and it now works. I can not thank you enough.

I still can not understand why on earth the script would work on local...
2,560
Posted By gjws
Bash script not parsing file with spaces in path
Hi everyone,

I'm trying to write my first ever shell script, the OS is Raspbian. The code I have written must be executed whenever a certain database has been modified. The database resides on a...
Showing results 1 to 21 of 21

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