Search Results

Search: Posts Made By: Astrocloud
1,824
Posted By RudiC
Try for FILE in *; do echo mv $FILE ${FILE%%.*};...
Try for FILE in *; do echo mv $FILE ${FILE%%.*}; done
Should this exceed your LINE_MAX, try
ls * | while read FILE; do echo mv $FILE ${FILE%%.*}; done
Forum: IP Networking 06-20-2013
1,412
Posted By Just Ice
if you have already eliminated the server load as...
if you have already eliminated the server load as the issue, contact verizon's and at&t's business customers department for some thoughts on that matter ...
4,848
Posted By Scott
ssh-keygen Copy the contents of id_rsa.pub...
ssh-keygen

Copy the contents of id_rsa.pub into the ~/.ssh/authorized_keys file on the server you want to connect to.
25,860
Posted By MichaelFelt
First thing I would do is make the code more...
First thing I would do is make the code more readable for others.

This is how I see the details:
awk 'FNR==1{i++}{LC[i]=NR} \
{\
for(k=1; k<=NF; k++)\
A[i,FNR,k]=$k\
}\
END\
{\...
Forum: Red Hat 06-04-2012
1,515
Posted By mark54g
for memory, I would even suggest the following: ...
for memory, I would even suggest the following:


vmstat -s -S M | egrep 'mem|swap'


Also, realize that if you are in a virtual server, you are NOT guaranteed any "MHz" value, per se. You are...
Forum: Red Hat 06-01-2012
1,515
Posted By admin_xor
For CPU speed: grep -i mhz /proc/cpuinfo ...
For CPU speed:

grep -i mhz /proc/cpuinfo


For RAM:

free -m


For disk space:

df -h
4,964
Posted By bakunin
Sorry to dissent again, but: using "expect" and...
Sorry to dissent again, but: using "expect" and hard-coding the password into the script is the same as hardcoding the password into the ftp-script.

Create private-/public-keys, exchange them and...
11,154
Posted By bakunin
There is an old saying that 90% of all Unix...
There is an old saying that 90% of all Unix problems are permission problems. Did you check the file systems permissions and ownerships of the file(s) and made sure they match?

Just a suggestion....
4,964
Posted By bakunin
Sigh.... First off: ftp was then, but you...
Sigh....

First off: ftp was then, but you shouldn't use it at all. It is insecure because it needs you to store the password in clear text, it transmits passwords/usernames in clear text (which is...
11,154
Posted By Neo
Your error message says: Please cut...
Your error message says:



Please cut and past the contents of this file in your next post, so we can see exactly what is going on in this file.
...
Forum: Programming 05-02-2012
5,058
Posted By Corona688
It has to be something that, theoretically, can...
It has to be something that, theoretically, can be done in a single pass.

It can find the highest value easily enough it needn't print anything until it's over. But to find all rows that match...
16,200
Posted By methyl
Or, totally paranoid code: cd /root/home find...
Or, totally paranoid code:
cd /root/home
find . -xdev -type f -name '*.php' -print | while read filename
do
# Remove echo when tested thoroughly
echo sed -i '/MatchText/...
16,200
Posted By Corona688
find ./ -iname '*.php' -exec echo sed -i...
find ./ -iname '*.php' -exec echo sed -i '/MatchText/ s/ReplaceMe/REPLACED/' '{}' ';'

Remove the 'echo' once you've tested and are sure it does what you want.
Forum: Web Development 11-29-2011
6,580
Posted By Corona688
@BFBW is already a value, you don't need select...
@BFBW is already a value, you don't need select to turn it into one. 'select' just amounts to a 'print' above, you don't need it.
CREATE TABLE @BFBW
...
Forum: Web Development 11-03-2011
1,747
Posted By Corona688
Try switching to mssql_ calls instead of mysql_...
Try switching to mssql_ calls instead of mysql_ calls. That's about all I can reccomend.
Forum: Web Development 11-03-2011
1,747
Posted By fpmurphy
Have a look at FreeTDS (http://www.freetds.org/)
Have a look at FreeTDS (http://www.freetds.org/)
Forum: Web Development 11-02-2011
1,747
Posted By fpmurphy
Well, if he just wants to move the database to...
Well, if he just wants to move the database to SQL Server 2008, why not use Sybase on Linux? After all, SQL Server is derived from Sybase. Other database options include Postgres and the other...
Forum: Web Development 11-02-2011
1,747
Posted By Corona688
If the way you're using mysql isn't scalable,...
If the way you're using mysql isn't scalable, what makes you think doing the exact same thing with mssql will be scalable? It may be your algorithms, database structure, etc, etc. that need...
1,876
Posted By durden_tyler
Ok, having gone through your previous post, I...
Ok, having gone through your previous post, I think maybe you want something like the following?


$
$
$ cat f37
1234567890123456 123456BIGAUDIODYNAMITE33 123.12 123456 ...
1,876
Posted By Corona688
Instead of one huge hardcoded regex, make a list...
Instead of one huge hardcoded regex, make a list of positions and loop through it. Then you get to use join() instead of listing each individual thing, too.

#!/usr/bin/perl

my...
3,887
Posted By Corona688
perl -e 'localtime()' prints nothing, and I...
perl -e 'localtime()' prints nothing, and I wouldn't have expected it to. It doesn't print anything, just returns a list or scalar.

perldoc -f localtime has these suggestions for getting dates as...
1,886
Posted By Paragon1970
Hi, Please find below perl oneliner that may be...
Hi,
Please find below perl oneliner that may be of use.
Please not I have not completed every field but this should be easy to complete.

myfile.in contains the following line :-...
7,112
Posted By rbatte1
Your file description contains a wildcard, so...
Your file description contains a wildcard, so that will be expanded. It does not necessarily follow that it will do "If readable file1 or if readable file2 or if readable file 3......" You have to...
7,112
Posted By zaxxon
What is a syntax error obiously, will be those...
What is a syntax error obiously, will be those lines:

if [ -r /home/dudemgnt/public_html/fileserver/Checks/Daily/RefundChecksDaily*.txt]

which are missing a blank in the back before the closing...
Showing results 1 to 24 of 24

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