Search Results

Search: Posts Made By: RudiC
37
Posted By RudiC
I am not aware of Oracle being able to output...
I am not aware of Oracle being able to output EXCEL workbooks, i.e. binary files. What it can do, and what you already deploy, is outputting .csv style files, if need be with different field / column...
102
Posted By RudiC
Any attempts / ideas / thoughts from your side?
Any attempts / ideas / thoughts from your side?
136
Posted By RudiC
Try this adaption of nezabudka's proposal to...
Try this adaption of nezabudka's proposal to support both structures:
sed -n '/DISTINCT/,/quit/{s/^.*: //; p}' file, or try also

awk '/202[0-9 :,-]*/ {sub ("^.*" $9, "")} /SELECT/, /quit/' file
331
Posted By RudiC
Follow ChublerXL advice. Use a less complex...
Follow ChublerXL advice. Use a less complex script, one or two lines, echoes; redirect stderr, too. Post the log files.
510
Posted By RudiC
Looks like your shell version doesn't provide...
Looks like your shell version doesn't provide that construct. What is it?
331
Posted By RudiC
Good news, no? What about my other...
Good news, no?


What about my other proposals?
331
Posted By RudiC
Add logging to your script! Anything in...
Add logging to your script!


Anything in the system logs, along this line?
Apr 2 14:17:02 UsersPC19 CRON[10758]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)Possibly an error...
175
Posted By RudiC
I'm a bit surprised about your output - how come...
I'm a bit surprised about your output - how come it containes seven lines "natasha 0" when looping across one single username only? And three lines of those above the header lines? Sure the tmp files...
331
Posted By RudiC
Did cron log the script's start? Add some logging...
Did cron log the script's start? Add some logging to your script, so you know that it started, and why and when it exited, either to syslog, or a individual log file.
124
Posted By RudiC
How are those paths presented / stored? In shell...
How are those paths presented / stored? In shell variables? Try
V1=/PPC/Cloud_Automation/Applications/APPNAME/Files/Data\ Management/Data...
392
Posted By RudiC
In your first script, you're both too generous,...
In your first script, you're both too generous, and not enough, with "command substitutions". Try
for i in "${SERVICES[@]}"
do pgrep $i >/dev/null
STATS=$?
if [ $STATS == 0 ...
Forum: Shell Programming and Scripting 2 Weeks Ago
870
Posted By RudiC
I'm helpless with that little context you give....
I'm helpless with that little context you give. What's so special with those files? Does tar work without the gzip? Does it work with other files, e.g simple text files? In another directory? Without...
446
Posted By RudiC
Try su's -c option.
Try su's -c option.
510
Posted By RudiC
What ksh version do you have? man ksh93 : ...
What ksh version do you have?

man ksh93 :




Try
[[ $string2 =~ ROS[0-9]*$ ]] && echo OK || echo NOK
OK
Forum: Shell Programming and Scripting 2 Weeks Ago
870
Posted By RudiC
I'm baffled to learn the AIX tar version doesn't...
I'm baffled to learn the AIX tar version doesn't provide the z option.


Writing the tar red output to a file (-f /backup/App_Bckup.tar) will prevent it to write to stdout, i.e. the pipe to...
Forum: Shell Programming and Scripting 2 Weeks Ago
955
Posted By RudiC
Again: too many escapes. Drop one of the two back...
Again: too many escapes. Drop one of the two back slashes in the read delimiter's -d definition. Same for ALL the escaped double quotes around file and directory names downstream.


Sure your...
288
Posted By RudiC
No surprise. If the grep "command substitution"...
No surprise. If the grep "command substitution" delivers the "empty" value, ls-l uses the default: . . man ls:

Add a certainly non-existent file name (difficult to find, as there are almost no...
Forum: Shell Programming and Scripting 2 Weeks Ago
955
Posted By RudiC
Drop the escaped double quotes in find's...
Drop the escaped double quotes in find's "starting point". find does allow multiple "starting points", BTW.
Forum: Shell Programming and Scripting 2 Weeks Ago
955
Posted By RudiC
Hmmm - I don't see...
Hmmm - I don't see /volume1/Archive/IMAGES/UPLOAD/DNG/ referenced anywhere in your script - that error msg can't come from that script. Does the DNG directory exist in the path?
287
Posted By RudiC
That space is the OFS between $1 and $2. Try like...
That space is the OFS between $1 and $2. Try like


awk '
BEGIN {for (i=split("JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC", month); i; i--) mdigit[month[i]] = i
}
{$1 =...
Forum: Shell Programming and Scripting 2 Weeks Ago
1,057
Posted By RudiC
I don't know why sudo kill PID should not work. ...
I don't know why sudo kill PID should not work.


Another twothree comments:
- bash provides the PID of the last process put in background in the $! variable (man bash).
- suppress ps' heading...
Forum: Shell Programming and Scripting 2 Weeks Ago
1,057
Posted By RudiC
I can't reproduce that specific error with the...
I can't reproduce that specific error with the script you posted. Sure you posted the correct and complete one?


Two comments:
- The #! token ("shebang") HAS to be the first two chars of a...
542
Posted By RudiC
Does your shell provide the select builtin?...
Does your shell provide the select builtin? Which, in combination with the case ... esac construct, helps building menus in a simple way.
677
Posted By RudiC
This MAY work to identify the target files. It...
This MAY work to identify the target files. It produces an archive listing in long format including the date/time stamps, which ($4,$5) then are printed to stdout and a pipe, and, in parallel, the...
677
Posted By RudiC
I'm afraid you're out of luck. Not all tar...
I'm afraid you're out of luck. Not all tar versions provide a --delete option; e.g.

tar --version
bsdtar 2.8.4 - libarchive 2.8.4
doesn't. Those which do, like
tar --version
tar (GNU tar) 1.30...
Showing results 1 to 25 of 500

 

Featured Tech Videos

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