Search Results

Search: Posts Made By: pppswing
4,367
Posted By pppswing
I manage to fix the problem renaming the main...
I manage to fix the problem renaming the main file from .c to .cpp then ./configure is calling the right library in the generated Makefile.

I thought first that STL was missing but it was bad gcc...
4,367
Posted By pppswing
c++ stl which rpm?
Hello,
I'm using RHEL 5.3, I need to compile C++ code and I'd like to know which rpm contains the STL library.

Thanks:)
2,108
Posted By pppswing
replace rsync
Hi,

I'd like to replace rsync by another program without data encryption.

I still need data control, but the transfert is secure and I don't care if people
can see data traffic.

Do you know...
5,275
Posted By pppswing
HDD free space check
Hi,

I need to add a condition in a script. The script is executed only if there is free 8 Gigas space.

I know

if [] then

fi

I don't know how to write the condition on free space
...
10,944
Posted By pppswing
To empty a file. cat /dev/null >...
To empty a file.

cat /dev/null > myfileToEmpty.txt
6,718
Posted By pppswing
double substitution
Hello,
I would like to dual subtitutes variables.

I tried


$serv="combo"
combo_TYPE="mop"

TYPENAME="$serv_TYPE"

Now, I'd like to get "mop" from TYPENAME

echo "${${TYPENAME}}"

...
7,532
Posted By pppswing
It doesn't seem to work. I'd like that $line...
It doesn't seem to work.

I'd like that $line contain really the line and not one part off the line : one word.
I have several HD to check.
7,532
Posted By pppswing
reading line by line a variable
Hello,

I have a variable Diskfree and I would like to read it line by line to extract information, I don't know how to get the line


Diskfree=`df -h | grep dev`


I want to make a loop to...
4,850
Posted By pppswing
variable into file
Hello,

I have a variable and I want to add this variable in a file (not to erase the file, only add, I guess >>).


#config
server="<server>Hostname</server>"
myfile=myfile.xml
net=true
...
6,924
Posted By pppswing
include in script
Hello,
I have a script and a second file that contains all parameters needed for the script.

How can I include this file in the script ?

I tried source but I have a "no such file or directory"...
5
2,988
Posted By pppswing
Regex
Hello
I need to make a regex.

I have a file myfile, in this file I want to find a number situated after PAYSLOT=
Before PAYSLOT is the begining of line (I guess ^) and
after the number is the...
9,771
Posted By pppswing
Nop, I don't have perl I have an error not a...
Nop, I don't have perl

I have an error not a valid identifier but I have the good result in it.

set $bibi=`ls -lk myfile | awk '{print $5}'`

bash : error `21 not a valid identifier,
21 is...
9,771
Posted By pppswing
thanks ls is in a ssh command ...
thanks

ls is in a ssh command

$filesize = `ssh root@$myip (ls -lt myfile.txt | awk '{ print $5 }')`

to know filesize on a remote computer

will it work knowing that I got public key...
9,771
Posted By pppswing
getting filesize
Hello,

I have a script that should store file size in a variable $filesize.
I don't know what is the best way to do it.

I tried
ls -lt myfile.txt | sed something >$filesize

but I don't...
Showing results 1 to 14 of 14

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