Displaying 20 results from an estimated 4000 matches similar to: "bash off topic"
2019 May 16
2
bash off topic
I have a simple bash script it will take arguments from a file that has
quotes.
my file arg.txt would be this
-lt "*.txt"
my script file would be
LS_ARG=`cat arg.txt`
ls $LS_ARG
it does not run properly:
sh -x ./arg.sh
++ cat arg.txt
+ LS_ARG='-lt "*.txt"'
+ ls -lt '"*.txt"'
ls: cannot access "*.txt": No such file or directory
How do I
2020 Jul 23
0
Off Topic bash question
On 23/07/2020 15:46, Jerry Geis wrote:
Hi Jerry,
See below, inline, for some comments.
> I have a simple script:
> #!/bin/bash
> #
> index=0
> total=0
> names=()
> ip=()
> while read -r LINE
> do
> NODENAME=` echo $LINE | cut -f 1 -d ','`
NODENAME=$(cut -d, -f1 <<< $LINE)
Notes: use $( instead of backticks. There's no need to quote the
2003 Jul 01
6
Shell Requirements for Shorewall 1.4.6
The 1.4.6 version of Shorewall makes additional demands on the shell. I
have found that both the RH9.0 version of ash and the version of ash
that has long been available from the Shorewall download sites are *not*
suitable for use with Shorewall 1.4.6. The LEAF Bering version of ash on
the other hand works fine.
Attached is a small shell program that will allow you to test your shell
for
2005 Jan 12
2
Off Topic: Statistical "philosophy" rant
R-Listers.
The following is a rant originally sent privately to Frank Harrell in
response to remarks he made on this list. The ideas are not new or original,
but he suggested I share it with the list, as he felt that it might be of
wider interest, nonetheless. I have real doubts about this, and I apologize
in advance to those who agree that I should have kept my remarks private.
In view of this,
2018 Aug 28
5
[Bug 2902] New: Shellcheck reports on ssh-copy-id
https://bugzilla.mindrot.org/show_bug.cgi?id=2902
Bug ID: 2902
Summary: Shellcheck reports on ssh-copy-id
Product: Portable OpenSSH
Version: 7.7p1
Hardware: Other
OS: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: ssh-copy-id
Assignee: unassigned-bugs at
2020 Jul 23
0
Off Topic bash question
Sorry - I see it now "remove the cat".
Thanks "All" for the suggestions. I wasnt aware of the method to avoid the
cut command.
Jerry
2023 Aug 11
1
Bug in dhcp-dyndns.sh script, A_REC always singleton array
On Fri, Aug 11, 2023, at 2:58 PM, Rowland Penny via samba wrote:
> On Fri, 11 Aug 2023 14:03:01 +0200
> Kasper Brandt via samba <samba at lists.samba.org> wrote:
>
> > Hello
> > I was directed to discuss this issue here. As I understand the issue
> > with using the unquoted variable is that it expand globs unless
> > noglob is set. E.g.
> >
> >
2020 Jul 23
4
Off Topic bash question
Thanks, when I change it do the following I get a syntax error
#!/bin/bash
#
while read LINE
do
echo $LINE
done < cat list.txt
./test_bash.sh
./test_bash.sh: line 6: syntax error near unexpected token `list.txt'
./test_bash.sh: line 6: ` done < cat list.txt'
2018 Nov 26
3
CentOS 7 bash perhaps off topic
hi all,
I have a small script that seems to be exiting and hitting the sleep 60...
The smwebsocket just connects to the web socket provided and outputs the
data. This works manually.
the myprogram just opens a database and writes the line...
My desire is to run the smwebsocket, connect to the websocket and output
the data (line by line) when we get a line that matches Location take that
line
2018 Apr 24
0
Vmware - Slightly off topic
In article <CABr8-B6fcNgogynq66nNMkSLCHAtqA4OrL09XY6ABPRV4H+ZQw at mail.gmail.com>,
Jerry Geis <jerry.geis at gmail.com> wrote:
> Hi All,
>
> What is the correct way to provide a CentOS 7 - WMware image for ESX ?
>
> As an amateur to VMware - I thought - great I can get VMplayer and ESX
> should be able to import my image... Wrong... I even went through the
>
2018 Apr 25
0
Vmware - Slightly off topic
On Tue, Apr 24, 2018 at 1:27 PM Jerry Geis <jerry.geis at gmail.com> wrote:
> What is the correct way to provide a CentOS 7 - WMware image for ESX ?
You are probably looking for VMware Converter which can p2v or v2v.
IMO: if you are creating a VM image which is a binary blob or image then
you are doing it wrong. Have the VM/server/desktop be a simple
next/next/next install and the
2023 Aug 11
1
Bug in dhcp-dyndns.sh script, A_REC always singleton array
On Fri, 11 Aug 2023 14:03:01 +0200
Kasper Brandt via samba <samba at lists.samba.org> wrote:
> Hello
> I was directed to discuss this issue here. As I understand the issue
> with using the unquoted variable is that it expand globs unless
> noglob is set. E.g.
>
> root at dy3:/# test="b*"
> root at dy3:/# a=($test)
> root at dy3:/# echo ${a[0]}
> bin
2020 Jul 23
5
Off Topic bash question
I have a simple script:
#!/bin/bash
#
index=0
total=0
names=()
ip=()
while read -r LINE
do
NODENAME=` echo $LINE | cut -f 1 -d ','`
IP=` echo $LINE | cut -f 2 -d ','`
names[index]="$NODENAME"
ip[index]="$IP"
index=`expr index+1`
total=`expr total+1`
done <<< $(cat list.txt)
simple file:
more list.txt
name1,ip1
name2,ip2
name3,ip3
output when
2010 Apr 08
1
[PATCH] Download Webpage
G'Day list,
I have made a trivial bug fix to the download website.
--- download.html_orig 2010-04-09 09:04:58.000000000 +1000
+++ download.html 2010-04-09 09:04:14.000000000 +1000
@@ -154,7 +154,7 @@ or use an <i>anonymous rsync</i> copy of
<p>There are also various patch files in the "rsync-patches.git"
repository that
represent either some work-in-progress
2008 Dec 03
1
Possibly unusual question involving windows version of wine.
Hey, I've heard that in a few fringe cases, WINE actually improves performance in a game.
I believe I may be in one of these few fringe cases.
Anyway, is there anyway to run a program in wine, while on windows? I've downloaded the windows binary .zips and I have no idea what to do with them. I've tried running the game through the wcmd.exe, but that does not seem to change
2016 Sep 29
0
HTTPS certificates (off topic)
On 9/28/2016 5:46 PM, Jerry Geis wrote:
> How do I get a valid certificate for a box that is behind a firewall and
> does not have a DNS entry?
>
> I was looking at letsencrypt.org but currently it looks like a valid DNS
> entry is needed, of which I don't have.
>
> There is nothing special about my setup, its just a box that is not
> directly on the internet, no DNS
2015 Dec 31
3
Video Resolution
Hi
I've just installed Tachyon: The Fringe and it plays but the max
resolution that it detects is 1024x768.
My monitor is 1600x900. Is there some way of helping it detect the
full resolution?
I've tried running with a desktop, but no joy.
Wine version 1.7.46
Thanks
2008 Aug 04
2
thematic map of USA
My goal is to prepare a thematic map of the US, with states shaded
according to their values for a variable of interest. I would like to
include an inset for Alaska in the upper left and an inset for Hawaii in
the lower left. If possible, I'd like to use Albers conic projection, or
something similar. Thus far I have tried using the maps package with
its state database (which omits
2023 Aug 11
1
Bug in dhcp-dyndns.sh script, A_REC always singleton array
Hello
I was directed to discuss this issue here. As I understand the issue with using the unquoted variable is that it expand globs unless noglob is set. E.g.
root at dy3:/# test="b*"
root at dy3:/# a=($test)
root at dy3:/# echo ${a[0]}
bin
It does seem a bit hypothetical that the output of sambatool dns query ... for an A record should contain a glob, but for the sake of robustness it
2017 Jan 10
1
Missing Dependency python-yubico
On 01/10/17 13:12, Tony Schreiner wrote:
> On Tue, Jan 10, 2017 at 11:12 AM, Mark LaPierre <marklapier at gmail.com>
> wrote:
>
>> Hey all, I'm trying to install the fedora-packager group so that I can
>> build Fedora source packages into RPMs that I can install. I'm getting
>> this error:
>>
>> Error: Package: