Displaying 20 results from an estimated 10000 matches similar to: "C5 BASH IF"
2015 Feb 14
4
C5 BASH IF
On Fri, 2015-02-13 at 23:46 -0600, Les Mikesell wrote:
> I think you are missing some very basic concepts here. First, the
> shell likes to parse things separated by white space. Second, [ is a
> synonym for test which is a build-in version of /bin/test, so try 'man
> test' for the syntax of tests. And third, you generally should use
> double quotes around variables in
2015 Feb 14
0
C5 BASH IF
On Sat, 2015-02-14 at 05:26 +0000, Always Learning wrote:
> NON-WORKING second comparison
>
> 15 if [ $file='law00.css' ]
> 16 then
> 17 file=$dir/$file
> 18 echo "css"
> 19 else
> 20 file=$dir/$file\.php
> 21 echo "no css"
> 22 fi
> 23 #----------------------------
>
> Every comparison in the
2015 Feb 14
0
C5 BASH IF
On Fri, Feb 13, 2015 at 11:26 PM, Always Learning <centos at u64.u22.net> wrote:
> Being new to some aspects of BASH, I tried to reduce the quantity of
> scripts by introducing a comparison test into an existing working
> script.
>
> The script refused to work until I placed [ ] around the actual test.
> The second test, in the same script, misfunctioned until I removed the
2015 Feb 14
0
C5 BASH IF
On Fri, Feb 13, 2015 at 11:54 PM, Always Learning <centos at u64.u22.net> wrote:
>
>> And third, you generally should use
>> double quotes around variables in tests so they continue to exist as
>> an empty string if the variable happens to not be set.
>
> Thanks for that. I assumed if test 1 worked, so would test 2.
>
> Have re-run test 2 with
>
>
2015 Jan 25
2
C5 & C6 : useradd
On Sun, 2015-01-25 at 04:38 +0100, Dennis Jacobfeuerborn wrote:
> On 25.01.2015 04:30, Always Learning wrote:
> >
> > useradd --help
> >
> > -d, --home-dir HOME_DIR home directory for the new user account
> > -M, do not create user's home directory
> > yet
> > useradd -M -s /sbin/nologin FRED
> >
> > produces in
2015 Jan 25
2
C5 & C6 : useradd
useradd --help
-d, --home-dir HOME_DIR home directory for the new user account
-M, do not create user's home directory
yet
useradd -M -s /sbin/nologin FRED
produces in /etc/passwd
fred:x:504:504::/home/fred:/sbin/nologin
Trying again with
useradd -d /dev/null -s /sbin/nologin doris
gives a CLI message
useradd: warning: the home directory already exists.
2015 Feb 14
0
C5 BASH IF
On Sat, Feb 14, 2015 at 11:36 AM, J Martin Rushton
<martinrushton56 at btinternet.com> wrote:
> <snip>
>> To understand it completely you need to know the order of
>> operations as the shell makes multiple passes over the line,
>> parsing, processing metacharacters, and expanding variables. And
>> I don't know where to find a concise description of that
2015 Feb 14
0
C5 BASH IF
On Sat, Feb 14, 2015 at 1:13 PM, Robert Nichols
<rnicholsNOSPAM at comcast.net> wrote:
>
>> But it is not 'just' expansions. You need to know the full order of
>> operations with all the steps - word splitting, quote removal, i/o
>> redirection, groupings, etc., some of which is repeated over the line
>> after some of the other steps happen. I think I
2015 Feb 14
2
C5 BASH IF
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 14/02/15 16:53, Les Mikesell wrote:
<snip>
> To understand it completely you need to know the order of
> operations as the shell makes multiple passes over the line,
> parsing, processing metacharacters, and expanding variables. And
> I don't know where to find a concise description of that any more.
man bash, about 900
2015 Jun 13
6
C5 : Firefox 38 bug
On 06/12/2015 11:57 AM, Jonathan Billings wrote:
> On Sat, Jun 13, 2015 at 10:55:47AM -0600, jd1008 wrote:
>> The most offensive problems of using browsers is that
>> they do not tell you nor ask your permission when javascripts
>> spy on your entire storage contents.
> Huh? You've been misinformed. Certainly there have been exploits
> against browsers to bypass
2015 Feb 14
3
C5 BASH IF
On 02/14/2015 12:03 PM, Les Mikesell wrote:
> On Sat, Feb 14, 2015 at 11:36 AM, J Martin Rushton
> <martinrushton56 at btinternet.com> wrote:
>> <snip>
>>> To understand it completely you need to know the order of
>>> operations as the shell makes multiple passes over the line,
>>> parsing, processing metacharacters, and expanding variables. And
2015 Apr 19
4
bash script fails conditional test
Hey all,
I wrote a very basic script to determine if cassandra db is running. I'm
setting a variable called 'pid' to the output of a ps | grep like to grab
the pid of the cassandra process.
#!/bin/bash
pid=$(ps -ef | grep cassandra | grep -v grep | grep -i -v -e grep -e screen
-e s3fs|awk '{print $2}')
if [[ -e $pid ]]
then
echo "Cassandra is running with pid:
2015 Jan 25
2
C5 & C6 : useradd
On Sat, 2015-01-24 at 22:45 -0500, Stephen Harris wrote:
> On Sun, Jan 25, 2015 at 03:43:06AM +0000, Always Learning wrote:
> > Should the 'correct' entry be:-
> >
> > fred:x:504:504:::/sbin/nologin ?
>
> No; that's invalid. There must be an entry in the home directory field.
Thanks Stephen and Dennis for the helpful explanation.
I will use:
2015 May 14
2
[CentOS-announce] CentOS-7 disk images for AArch64 Platforms
On Thu, 2015-05-14 at 14:25 -0500, Jim Perrin wrote:
> We've produced a disk image intended to help hardware vendors and
> enthusiasts who are interested in bringing CentOS to their AArch64 based
> platform. This allows a vendor to bypass the installer or to edit the
> disk image before booting in order to test kernel modules or options. It
> is intended for development purposes
2015 Feb 04
6
Another Fedora decision
On Wed, 2015-02-04 at 14:55 -0700, Warren Young wrote:
> > On Feb 4, 2015, at 12:16 PM, Lamar Owen <lowen at pari.edu> wrote:
> >
> > Again, the real bruteforce danger is when your /etc/shadow is exfiltrated by a security vulnerability
>
> Unless you have misconfigured your system, anyone who can copy /etc/shadow already has root privileges. They don?t need to
2015 Jun 10
3
C5 : Firefox 38 bug
I displayed, as a web page, a list of search results created in PHP,
from MySQL.
Firefox prevents me looking at the web page's source coding.
Right-click, view source, produces this display:-
"Document Expired
"This document is no longer available.
"The requested document is not available in Firefox's cache.
" As a security precaution, Firefox does not
2015 Feb 04
4
Another Fedora decision
On 02/04/2015 02:08 PM, Lamar Owen wrote:
>
> 3.) Attacker uses a large graphics card's GPU power, harnessed with
> CUDA or similar, to run millions of bruteforce attempts per second on
> the exfiltrated /etc/shadow, on their computer (not yours).
> 4.) After a few hours, attacker has your password (or at least a
> password that hashes to the same value as your password),
2004 Aug 06
2
quelques questions à propos d'icecast et autres outils associés...
bonjour, hello, buenas dias,
ça ne fait pas longtemps que je suis sur cette mailing list, J'éspére que
quelqu'un parle le français car techniquement je suis pas doué ni en anglais
ni en d'autres langues...
it isn't a long time i 'm on the mailing list, i hope someone is speaking
french, because i don't write very well others languages about technical
probléms...
no
2013 Apr 02
0
C5-C6 Migration problem: HTML-Formatted email in Squirrelmail disappears
Greetings,
In Squirrelmail, you can install a plugin html_mail, that allows you to
compose html-formatted email.
This plugin functions with Firefox and Internet Explorer; it doesn't
function in Google Chrome.
In CentOS 5 with PHP5.1, I could copy and paste html-formatted text
with complicated html (tables, css, etc) from a text editor into the the
html-formatting pane of squirrelmail,
2015 Jun 12
0
C5 : Firefox 38 bug
On 06/13/2015 11:11 AM, jd1008 wrote:
> All your browsing history, all cookies ...etc are open books
> as far as many javascripts are concerned.
Javascript can use CSS attributes to see if you've visited a specific
URL, which is unfortunate, but that's a long way from saying that your
history is an open book. Javascript cannot directly access your
history. A script cannot