Search Results

Search: Posts Made By: GSalisbury
12,845
Posted By GSalisbury
Unless I'm missing something how about: rm...
Unless I'm missing something how about:

rm [-i -v] `ls -1 * | grep -v -e X -e Y -e X`
6,730
Posted By GSalisbury
Yes, curl is on the path. We did "which curl"...
Yes, curl is on the path.
We did "which curl" at the outset so the we could use the "/usr/bin/curl" consistently.

The shell has been both the same as login (csh) as well as sh (which is linked to...
6,730
Posted By GSalisbury
batcherr: curl was yum updated: curl -V = curl...
batcherr:
curl was yum updated: curl -V = curl 7.15.5

drysdalk
The script has been run with the "-x" option - result:
/usr/bin/curl -i -H '"Content-Type:' 'application/json"' -X POST -d...
6,730
Posted By GSalisbury
Curl won't complete in a script but does from prompt. Idea?
On RHEL5 from within both a shell (sh->bash) and a csh script curl fails with a "curl: (6) Couldn't resolve host 'application'" error.

This is the result whether run as a command at the shell...
Forum: Programming 02-01-2016
3,055
Posted By GSalisbury
Thanks for re-stating it is a literal value. ...
Thanks for re-stating it is a literal value.
That's what had been indicated thoughout the last couple of posts.
Done (again)
Forum: Programming 01-27-2016
3,055
Posted By GSalisbury
Thanks - that's pretty much what the takeaway has...
Thanks - that's pretty much what the takeaway has been.

In the code blocks here that gave rise to the conversation the sizeof was expressed in the using statements and not set as separate...
Forum: Programming 01-18-2016
3,055
Posted By GSalisbury
FWIW, The original query was not overtly based...
FWIW,
The original query was not overtly based upon concerns of overhead or performance per se but, rather, [possible?] quote technical differences in compiled result.

The illustrated fragments...
Forum: Programming 12-15-2015
3,055
Posted By GSalisbury
I have to bail on this for now - will pick it...
I have to bail on this for now - will pick it back up tomorrow after considering your comments.
Thx.
Geo.

---------- Post updated 12-15-15 at 05:19 PM ---------- Previous update was 12-14-15 at...
Forum: Programming 12-14-2015
3,055
Posted By GSalisbury
1. & 2. Yes string.h and sys/types.h have been...
1. & 2. Yes string.h and sys/types.h have been included.
3. An example a might be char a[8].
4. An example c might be int c = sizeof(a).
5. Using gcc on RedHat Linux boxes.

What I was after is...
Forum: Programming 12-14-2015
3,055
Posted By GSalisbury
Compiler/Runtime uses of sizeof
Ignoring other considerations for a moment and in general ...
Would there be a difference in result (dot oh or execution) of:

A.
strncpy( a, b, sizeof(a) );

vs.

B.
c = sizeof(a);...
6,739
Posted By GSalisbury
Would something kludgy work?: grep -B4 -A3...
Would something kludgy work?:

grep -B4 -A3 LOCKED <file>

Play with the -B (before) and -A (after)
9,650
Posted By GSalisbury
Well... not wanting to get drawn into a big...
Well... not wanting to get drawn into a big debate as others may have more intimate knowledge... but that's pretty much the way it is.

Generally speaking if "it's on the path" and executable to...
9,650
Posted By GSalisbury
How about if you wrote a script named ps to...
How about if you wrote a script named ps to replace the ps program (which you renamed to, say, ps.bin or something.

Then in the script you say if not xxx user run ps.bin otherwise do nothing or...
7,189
Posted By GSalisbury
Can username col be enlarged in ps output
Principally concerned with RedHat Linux (EL3+).

When using a ps command that includes the username in the output line is there a way to enlarge the size of the column.

It appears that presently...
44,886
Posted By GSalisbury
grep -l <string> <files> | wc -l
grep -l <string> <files> | wc -l
21,338
Posted By GSalisbury
there's also echoing and piping into cut -f1 (or...
there's also echoing and piping into cut -f1 (or 2) -d':'
9,532
Posted By GSalisbury
The as I had indicated in method one: you...
The as I had indicated in method one:

you would need to "set argv=( arg1 arg2 arg3... )"
then
source <your file.> (without arguments on the line!)

<Your file> would then be able to use $1,...
9,532
Posted By GSalisbury
In csh when you source another script it's...
In csh when you source another script it's running in your current context.
That's why source xxx arg doesn't get you what you want.
You'd have to either do:
set argv=( "blah1" "blah2"...)...
13,000
Posted By GSalisbury
I could be mistaken here, but this sounds like...
I could be mistaken here, but this sounds like you're after the kernel ARG_MAX value.

From /etc/conf/cf.d/mtune:

* General Kernel Parameters ------------------
ARG_MAX 5120 1024 ...
24,779
Posted By GSalisbury
You could have the script recursively run itself...
You could have the script recursively run itself to a logfile...

example in csh:

if ( "${argv[1]}" != "~~" ) then

${0} "~~" ${argv[2-]} >& <logfilename>

exit
...
3,845
Posted By GSalisbury
On our RH 9 /etc/vsftpd/vsftpd.conf ...
On our RH 9

/etc/vsftpd/vsftpd.conf

allows you to tweak-up ftp...
69,803
Posted By GSalisbury
Thanks. I used the rm /-ov. I feel stupid...
Thanks.
I used the rm /-ov.
I feel stupid (guess i am)<g>.
I just never tried the obvious.
G.
69,803
Posted By GSalisbury
How to remove a file with a leading dash '-' in it's name?
Somehow someone created a file named '-ov' in the root directory.

Given the name, the how was probably the result of some cpio command they bozo'ed.

I've tried a number of different ways to get...
Showing results 1 to 23 of 23

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