Search Results

Search: Posts Made By: Panos1962
6,633
Posted By Panos1962
mutt usage
I want to use mutt in order to send some files as attached files using the mutt pogram.

I've tried:


mutt -s "Some Subject" -a file1 -a file2 panos1962@gmail.com <message

to send the...
2,756
Posted By Panos1962
Thank you zaxxon! We're using RedHat. Output...
Thank you zaxxon!
We're using RedHat.
Output of uname -a is:
Linux cht0011 2.6.9-5.ELsmp ...
We've not installed any patches since the systme creation (about 3 years).

2) Can I remove...
2,756
Posted By Panos1962
User in who but no processes
Hi all!
After killing some processes, I encounter the following problem:

1) some delay in the login process
2) question marks (?) in who output
3) when doing ps -fu for users with question mark...
3,008
Posted By Panos1962
Not so clear
Dera friend, I've also encountered the same problems in the past. I'm using the "n" qualifier for numeric fields to avoid such problems. Your example, though, has a dark point: you want numerical...
Forum: Programming 05-03-2009
34,056
Posted By Panos1962
It's not so easy
Hi!
You called system("...") in your C program. First of all, the returned value has to do with the exit status of the program run under system, not the output of the command!

Second: Every...
Forum: Programming 05-02-2009
2,490
Posted By Panos1962
SQL Powered Awk (SPAWK)
If anyone is interesting in using awk with MySQL databases, then I have some good news:

I've developed a (shared) library, namely libspawk.so, using MySQL C API and GNU awk's extension feature. If...
2,995
Posted By Panos1962
Difference between libsqlclient.so and libsqlclient_r.so
What is the difference between these two (shared) libraries? Does the _r means something?
Thanks!

Correction!
-----------
The libarries are libmysqlclient.so and libmysqlclient_r.so.
5,094
Posted By Panos1962
No, use awk
No, use awk
3,879
Posted By Panos1962
It's easy for awk
BEGIN {
FS = ","
tmp1 = "/tmp/" PROCINFO["pid"] ".1"
tmp2 = "/tmp/" PROCINFO["pid"] ".2"
}

{
if (another_line) {
printf "," >>tmp1
printf "," >>tmp2
}
...
6,286
Posted By Panos1962
Are you sure that the mysqldump program exits...
Are you sure that the mysqldump program exits with non xero value where things go wrong?
6,286
Posted By Panos1962
Leave a space after between if and bracket too! ...
Leave a space after between if and bracket too!

if [ $? -ne 0 ]; then
6,286
Posted By Panos1962
You must use spaces in brackets: if [ $? -ne...
You must use spaces in brackets:

if [ $? -ne 0 ]; then
10,312
Posted By Panos1962
It's not a complete answer, but it works: ...
It's not a complete answer, but it works:

sort -k1n -k2n file
1,945
Posted By Panos1962
AWK -- Dynamic Regular Expressions
The expression "/X/..." is not what you think. The pattern matching /X/ means that the input line matches literaly X, e.g. sdgasXhasgdasXdfsdf, not the value of variable X. If you intend to math the...
6,071
Posted By Panos1962
I don't think that another shell is a good idea....
I don't think that another shell is a good idea. I believe that the strength of the UNIX os is among other things its simplicity. After almost 30 years there is a dozen of shells and this is no good...
4,973
Posted By Panos1962
You can't exclude root user from anything. The...
You can't exclude root user from anything. The only thing you can do is cryptography but yoy'll need to provide some keys every time.
3,182
Posted By Panos1962
What about three liner solution?
In vi/vim:

:g/abc/s//[Control-V][Control-\]/g
:g/[^[Control-V][Control-\]]/\*/g
:g/[Control-V][Control-\]/s//abc/g

I'm using [Control-V][Control-\] to replace 'abc' pattern with 034 octal...
1,884
Posted By Panos1962
The only thing you have to do is check the...
The only thing you have to do is check the ${connect1} value before printing it:

if [ -n "${connect1}" ]; then
echo "${connect1}"
else
echo "No rows returned"
fi


instead of just:...
2,291
Posted By Panos1962
There is another solution to this problem, but...
There is another solution to this problem, but you have to add some code to your `myscript.sh'. Put some kind of lock while your program is runing, e.g. if your program is a shell script, you can add...
5,958
Posted By Panos1962
Rounding numbers in awk
I send you an attached file with the awk source of a simple function for rounding numbers in any scale. Of course there are some limits, but you can edit the code and make it better (if you can)....
31,545
Posted By Panos1962
Try -- to sign end of options. This is a general...
Try -- to sign end of options. This is a general rule for such problems, e.g.
To grep -3 try:

grep -- -3 ...

If yoy want to remove a file named -panos you give:

rm -- -panos

etc.

This...
6,286
Posted By Panos1962
Actually this is a pipeline consisting of two...
Actually this is a pipeline consisting of two components (mysqldump and gzip). The success of this pipeline depends in the success of the two programs; either mysqldump may fail or gzip (or both...
12,306
Posted By Panos1962
Of course there is a way to find files of any...
Of course there is a way to find files of any time interval old.
You can touch a file with certain timestamp (see manual pages for program touch) and then use find with option -newer (see manual...
16,212
Posted By Panos1962
Be more specific.
What do you mean with "count values"?
5,016
Posted By Panos1962
Hard to do it better.
I think that you found a good solution to your problem. But there is a small bug: ls must be called wirth -A option.
Showing results 1 to 25 of 27

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