Search Results

Search: Posts Made By: alex_5161
Forum: Programming 03-03-2018
3,017
Posted By alex_5161
The solution to my question is the command ...
The solution to my question is the command
do EXPR;
, having as EXPR the script-2!

That way the script-2 will have defined in script-1 some variables;
it will process everything,...
Forum: Programming 02-28-2018
3,017
Posted By alex_5161
PERL: In a perl-scripttTrying to execute another perl-script that SETS SOME VARIABLES !
I have reviewed many examples on-line about running another process (either PERL or shell command or a program), but do not find any usefull for my needs way. (Reviewed and not useful the system(),...
Forum: Programming 11-01-2017
2,930
Posted By alex_5161
OK; Thanks, Don, for discussing all that with me!...
OK; Thanks, Don, for discussing all that with me!
Appreciate it!
I have found answer for my situation and that is simple!
Just I've been following the shell script activity and did not guess...
Forum: Programming 10-31-2017
2,930
Posted By alex_5161
Thanks, Don Cragun, for the answer and...
Thanks, Don Cragun, for the answer and information.
Yes, I have realized that there is no EXIT signal neither in shell (by kill -l), nor in Perl %SIG hash initially. Also, the $Config{sig_name}...
Forum: Programming 10-30-2017
2,930
Posted By alex_5161
Perl: trap signal 'exit': why I am not able to have it work??
First time trying to work with signals in Perl.
Reviewing example I try it, but not able to get it work for 'exit'.
I hope, I am correct, assuming, that the ending any code by
exit...
3,791
Posted By alex_5161
I see, thanks Aia, RudiC! I know the {, ..},...
I see, thanks Aia, RudiC!
I know the {, ..}, but not the [....]: so, depends on file's existence!

Thanks! Appreciate your help! (And this forum!!)
3,791
Posted By alex_5161
Thank you, Aia! So, the '<>' getting files...
Thank you, Aia!

So, the '<>' getting files in 'shift' from @ARGV

Only one think I didn't get (acctualy unrelated to question, but) : what is the fl[0-9]?
Whas it assumed the same as next:...
3,791
Posted By alex_5161
Perl command line option '-n','-p' and multiple files: can it know a file name of a printed line?
I am looking for help in processing of those options: '-n' or '-p'
I understand what they do and how to use them.
But, I would like to use them with more than one file (and without any shell-loop;...
Forum: Programming 10-13-2016
1,474
Posted By alex_5161
Help me to understand strange 'typedef ... ' in some source...
Working on some source I've found some strange declaration in included header file.
I am looking for someone's help to understand me that syntax's, as it is fine (it is compiled without any...
Forum: Programming 10-13-2016
48,363
Posted By alex_5161
Thank you, jim mcnamara, it is perfectly helps! ...
Thank you, jim mcnamara, it is perfectly helps!
Sure here is more than I need in my case, but everything is clear and strait forward!
Additionaly, your code keep a way to switch back that not...
Forum: Programming 10-13-2016
48,363
Posted By alex_5161
C, UNIX: How to redirect 'stdout' to a file from a C code?
I am looking for a way to redirect standard output to a file from a C-code;
so, any 'cout<<..' or 'printf(...)' will be written into a file.

I have a server source that I need to debug.
That...
3,005
Posted By alex_5161
Thanks, Aia! So, it seems, I did understand...
Thanks, Aia!
So, it seems, I did understand pretty correct.
That means, my unclear, acctualy, is to the logic.

What the reason to restrict new-line (the \r,\n) on line beginning in C/C++ ?!
...
3,005
Posted By alex_5161
Perl, RegEx - Help me to understand the regex!
I am not a big expert in regex and have just little understanding of that language.
Could you help me to understand the regular Perl expression:
^(?!if\b|else\b|while\b|[\s\*])(?:[\w\*~_&...
Forum: Programming 11-06-2014
1,769
Posted By alex_5161
Perl: restrict perl from automaticaly creating a hash branches on check
My issue is that the perl script (as I have done it so far) created empty branches when I try to check some branches on existence.

I am using multydimentional hashes: found it as the best way for...
Forum: Programming 09-29-2014
1,074
Posted By alex_5161
(No any reply on pretty simple question: not many...
(No any reply on pretty simple question: not many Perl developers?)

Finally, I am using such way:
- file named as a Perl module: with 'pm' in extension.
- Starting Perl in 'interactive'...
Forum: Programming 08-25-2014
1,074
Posted By alex_5161
Perl: How to load some functions automaticaly, starting Perl inteructively (with -d -e 0)?
I would like to use Perl in 'interactive' mode (kind off), starting it by
> perl -d -e 0;

But I need to have some function be read on loading.
Also, it should not be for anyone who starting...
Forum: Programming 05-14-2014
1,781
Posted By alex_5161
Yes, you are right! (Did not guess it earlier!) ...
Yes, you are right! (Did not guess it earlier!)
That is in PL-SQL exist a way to return in processing after error handling, but not in this C++ possibility!

But, still, chance to do some...
Forum: Programming 05-14-2014
1,781
Posted By alex_5161
Thanks, Corona688, for reply and sharing your...
Thanks, Corona688, for reply and sharing your thoughts on that matter!
The point about following the Java style is reasonable (while, actually, not big deal.)
'Cleaner' ?, hmm, hard to be agree,...
Forum: Programming 05-13-2014
1,781
Posted By alex_5161
C++ - 'try, throw, catch' compare to regular C-style 'if' - advantages?
(I have long gap to communicate with C++ and do not recall if I have used 'try-catch' at all; so, looking for advice...)

I am trying to understand what the benefits of using that C++ error...
Forum: Programming 09-11-2012
3,179
Posted By alex_5161
OK, after checking, I should admit, that I was...
OK, after checking, I should admit, that I was wrong!
Corrona688, you ar ecompletely right, and I am not able to use 'enum' like 'maping' definition to indexes of info-struct array!
No way to...
Forum: Programming 09-07-2012
3,179
Posted By alex_5161
Thanks ,Corona688 for extended responce! I...
Thanks ,Corona688 for extended responce!
I will think about your points and advices and replay later.

(I am complitely fine about 'enum' and understand what it is internaly. The only point that...
Forum: Programming 09-07-2012
3,179
Posted By alex_5161
Corona688 - Thanks for replay. Not what I have...
Corona688 -
Thanks for replay. Not what I have asked, but appreciate attention!

'Spare'=='Sparse', thank for correction and sorry for misspelling.
Regarding the >>enum E_TYPE {1,4,2};<< I...
Forum: Programming 09-07-2012
3,179
Posted By alex_5161
C- trying to code a 'spare array'; 'enum' fauled.
I am trying to implement a spare array in C that would be referenced by regular integers.
Right away: define array for maximum possible index elements completely is not what I trying to get!!!

...
4,264
Posted By alex_5161
OK, I have error in spelling the 'set -o emacs',...
OK, I have error in spelling the 'set -o emacs', but you see it in my post ...
So, what is the point of your reply? Just to have it replyed?
4,264
Posted By alex_5161
Arrow keys binding in AIX v5.3 - how?
Would somebody advise how arrow keys could be binded in AIX v5.3?

I could not find reasonable information online related to AIX.

I've meat advises to define:
alias __A=$'\020' # or the...
Showing results 1 to 25 of 186

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