Search Results

Search: Posts Made By: digioleg54
789
Posted By RudiC
man ksh:
man ksh:
1,846
Posted By jim mcnamara
It skips over the arguments -- if no arguments...
It skips over the arguments -- if no arguments it just goes on. Now whether that is correct for job to run well, I cannot know. Your problem.



echo "VARVAR $#"
if [ $# -gt 0...
2,973
Posted By apmcd47
If your scripts are all written in ksh already,...
If your scripts are all written in ksh already, you should insist all your systems are installed with ksh in addition to bash. It will cost your company next to nothing compared with testing and...
2,973
Posted By RudiC
Looks like your login shell is ksh. I have to...
Looks like your login shell is ksh.
I have to admit that I don't really understand your problem. Why do you ask if you vave to "convert sh /ksh to bash" if ALL your scripts should be running...
2,973
Posted By RudiC
Then ask your admin to install the ksh- rpm.
Then ask your admin to install the ksh- rpm.
663
Posted By Aia
Your new server has been reconfigured and it does...
Your new server has been reconfigured and it does not quite need a single /export mount point.
1,411
Posted By vgersh99
once again, I'd strongly encourage using set -x...
once again, I'd strongly encourage using set -x when troubleshooting....

TARFILE=${NAME}.tar
TARGZFILE=${NAME}.tar.gz
ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly;...
920
Posted By Corona688
I think you left out an important part of the...
I think you left out an important part of the script. There must be a "shift" somewhere below that "esac", which will change the value of $1.

When $1="A", $2="B", $3="C", shift tosses the value...
2,341
Posted By rbatte1
You could always install ksh on Linux. Which...
You could always install ksh on Linux. Which flavour are you going to?

That will get you close, but often ksh is a link to bash which then emulates the ksh functionality closes but not exactly. ...
740
Posted By MadeInGermany
Yes, expr is an external program; the builtin $((...
Yes, expr is an external program; the builtin $(( )) is much more efficient.
And in an if [ ${cnt} -eq 0 ]; then you can even do cnt=1.
Further, you can redirect a whole code block like this
if...
1,835
Posted By vgersh99
... or to do whatever 'cleanup' needs to be done...
... or to do whatever 'cleanup' needs to be done (based on the script functionality)
1,144
Posted By vgersh99
\n- is a new-line followed by dash space when...
\n- is a new-line followed by dash space when used in echo/printf (assuming echo supports \n).
You can always test the hypothesis by creating a "test harness" to mimic....
1,144
Posted By Scrutinizer
Some versions of echo on certain shells on...
Some versions of echo on certain shells on certain systems will print a newline followed bij a minus sign and a space (in other versions it will print the 4 characters \n- )
1,374
Posted By MadeInGermany
I think it does. But your tar does not read...
I think it does.
But your tar does not read from the pipe, it takes the arguments which require a dot.
Without the dot, and without the pipe
tar -cvf transfer_dmz_start_daily.tar...
854
Posted By RudiC
Not knowing what a borne shell is, I suspect...
Not knowing what a borne shell is, I suspect thisthen#{ process daily files to be the culprit. Trying to replicate the problem (like then#blalala), in bash I get
bash: syntax error near unexpected...
1,116
Posted By Scrutinizer
No, because sum_*.*.csv is below...
No, because sum_*.*.csv is below sum_details_*.*.csv in the case statement. The order is essential, because the matches are top to bottom. Once a match is found, other patterns will not be tried.
...
890
Posted By vgersh99
echo...
echo 'roundrobin_report_report_ALL_dbagadm_${Today}-${TM}_U.csv' | awk -F'$' '{print substr($0,1, index($0,"$")-2)}'
echo 'roundrobin_report_report_ALL_dbagadm_${Today}-${TM}_U.csv' | sed...
Showing results 1 to 17 of 17

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