Displaying 20 results from an estimated 3000 matches similar to: "Shell Script: Simple array usage = bad substitution?"
2008 Dec 23
2
Bash Script for Beginners! oh dear :'(
Hey guys,
I'm a bit of a beginner (understatement!) with shell scripting and
seek help! I am setting up our new squid proxy. Its working a treat
and squidGuard is the icing on the cake. But, I am trying to write a
shell script to search through our black list category's for
squidGuard and remove the parsed value;
Scenario:
/some/directory/where/blacklist/is/stored contains about 40-50
2009 Jun 03
4
[OT] Simple Shell Script (while loop)
Hey Guys,
I can not find the corrent syntax for what I am trying to acheive with a
while loop. Having said that I'm not exactly sure what you would call it so
I have been googling with no success probably for that reason.
I am just working with some sub directories except there is one I don't want
to use so I have a while loop like the following; if we stubmle into the sub
directory I
2009 May 13
3
Shell Script Pointers?
Hey Listee's
I am trying to write a shell script to sort and compare my blacklist
for squidGuard with the nightly updates that come down in a tar ball.
It should be rather simple but I'm not to grate at this. The script is
to run nightly, it will download the latest blacklist tarball, un tar
it and then add any new entries to the existing black list. The
blacklists work by having a folder
2009 May 08
0
Hibernate Timeout
Hi Guys n Gals,
I've been trying to find out how to set the timeout value for how long
my machine will wait before it goes into hibernation via the terminal
but I can't find it anywhere? Does any one know?
Any help would be greatly appreciated.
Regards,
James ;)
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GIT/MU/U dpu s: a--> C++>$ U+> L++> B-> P+> E?> W+++>$
2009 Mar 19
4
Being Green, Time to make the servers sleep!
Shadies and Mentlemen;
I am trying to be green and put our backup servers to sleep during the
day and have them wake on LAN and fire back up at night for our
nightly backups as "sleep" is a sort of low power usage mode.
(At this point I would be curious to know the different levels of
sleep, what can I achieve? Does my server just drop into a low power
state, or can I stop the hard
2009 Jun 03
3
System V Init Script
Hey Listees,
I have a question (hopefully quite simple) about the system V init scripts
in /etc/init.d. I have an app installed and for some reason it had no system
V init script. It has been installed a long while now so I can't quite
remember whats going on but basically I remember I wrote the init script my
self and the app is enabled as a service which chkconfig to run at system
levels 3,
2013 Apr 24
2
[LLVMdev] Another missed optimization opportunity?
On 04/24/2013 01:29 PM, Caldarale, Charles R wrote:
> Is this a potential aliasing effect? Since myarray is defined as a pointer, not an array, it's theoretically possible that the address therein refers to the same memory location as the pointer itself.
I was thinking along those lines, but I haven't been able to come up
with a specific instance of what could possibly be aliased.
2013 Apr 24
8
[LLVMdev] Another missed optimization opportunity?
I was suprised to find that some bitcode I'm generating isn't getting
optimized. Here, I'm doing the equivalent of "myarray[5]++" (on an
"extern int *myarray"), repeated three times:
@myarray = external global i32*
define void @update_array() #0 {
%1 = load i32** @myarray, align 8
%2 = getelementptr inbounds i32* %1, i64 5
%3 = load
2008 Nov 25
0
Dell PE2970 with ATI RN50
Hey Guys,
I'm having a few troubles trying to get Cent OS 5.2 displaying correctly on
my Dell PowerEdge 2970 (I also have two PowerVault NF500 III's but they are
just getting a little screen lag at the minute, the 2970 is getting white
artifacts when I drag a window!).
Can anyone help me locate and correctly install some drivers. The 2970 has
an onbaord ATI RN50 as its an AMD board/CPU
2009 Jan 06
1
xCache install error ($PHP_AUTOCONF?)
Hey Guys
I'm trying to install xcache on our web server (php optcode cacher)
but I am having the following error. I have download the xcache tar
ball, unzipped and when in the unzipped directory attempting to run
phpize but it fails with the following error:
[root at server1882 xcache-1.2.2]# phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend
2009 Jan 27
2
Upgrade to 5.3?
Hey Listee's!
I'm not that up on CentOS so I'd be curious to know if it is possible
to upgrade CentOS 5.2 to 5.3 without reinstalling? Perhaps via Yum? Or
can you get update RPMs?
I hope this doesn't pose to much of a stupid question.
Thanks for your help everyone.
Regards,
James ;)
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GIT/MU/U dpu s: a--> C++>$ U+> L++>
2006 Jan 16
3
new comer's question
I am new to R. I try to search the web but could not find the answer so I
post it here asking for help.
I have a csv file looks like this: (between two ==== lines)
===========================
Machine Name,"Resource, Type","Resource, Sub-type","Resource,
Instance",Date,,Data ->,,,,,,
,0.041666667,,,,,,,,,,,
Time (HH:MM)
2008 Feb 13
2
[Linux/Python 2.4.2] Forking Python doesn't work
Hello
When a call comes in, I'd like to fork a Python script that
broadcasts a message so that users see the CID name + number pop up on
their computer screen, and simultaneously ring their phones.
The following script doesn't work as planned: It waits until the
script ends before moving on to the next step, which is Dial():
===========
exten =>
2013 Apr 24
0
[LLVMdev] Another missed optimization opportunity?
Hi Scott,
On 24/04/13 19:40, Scott Pakin wrote:
> I was suprised to find that some bitcode I'm generating isn't getting
> optimized. Here, I'm doing the equivalent of "myarray[5]++" (on an
> "extern int *myarray"), repeated three times:
does your bitcode contain data layout information?
Ciao, Duncan.
>
> @myarray = external global i32*
>
2013 Apr 24
0
[LLVMdev] Another missed optimization opportunity?
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
> On Behalf Of Scott Pakin
> Subject: [LLVMdev] Another missed optimization opportunity?
> I'm doing the equivalent of "myarray[5]++" (on an
> "extern int *myarray"), repeated three times:
> I had expected the three increments by 1 to
> be collapsed into a single increment
2013 Apr 24
0
[LLVMdev] Another missed optimization opportunity?
The semantic reason is that the optimizer is required to assume that the
i32 stores could be storing to the storage of myarray. LLVM IR does not
permit optimizers to optimize based on the nominal types of memory objects
or memory accesses.
This gets optimized in C, because the C compiler adds special TBAA metadata
annotations to the loads and stores which say that the stores of "int" do
2009 Feb 02
2
Redistributing CentOS
Hey Listees,
Just a quick question. I hope this isn't received incorrectly by
everyone as I do mean the best for the CentOS project;
I am wondering if it would be frowned upon to upload CentOS to my
RapidShare account. I understand I can freely distribute CentOS but to
what extent? In its simplest form I only really want to upload CentOS
5.2 to my RapidShare account for speed.
I had to
2013 Apr 24
0
[LLVMdev] Another missed optimization opportunity?
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
> On Behalf Of Scott Pakin
> Subject: Re: [LLVMdev] Another missed optimization opportunity?
> > Is this a potential aliasing effect? Since myarray is defined as a
> > pointer, not an array, it's theoretically possible that the address
> > therein refers to the same memory location as
2007 Mar 09
4
How to create a list that grows automatically
Dear R users
I would like to know if there is a way to create a list or an array (or
anything) which grows automatically as more elements are put into it. What I
want to find is something equivalent to an ArrayList object of Java
language. In Java, I can do the following thing:
// Java code
ArrayList myArray = new ArrayList();
myArray.add("object1");
myArray.add("object2");
2007 Mar 09
4
How to create a list that grows automatically
Dear R users
I would like to know if there is a way to create a list or an array (or
anything) which grows automatically as more elements are put into it. What I
want to find is something equivalent to an ArrayList object of Java
language. In Java, I can do the following thing:
// Java code
ArrayList myArray = new ArrayList();
myArray.add("object1");
myArray.add("object2");