Search Results

Search: Posts Made By: Zel2008
4,174
Posted By Zel2008
Thanks Chubler, I'll try this out and see...
Thanks Chubler,

I'll try this out and see how it works, thanks. Is sed included by default in Ubuntu? We have a major requirement that things not be too difficult to maintain, and we don't want to...
4,174
Posted By Zel2008
Non-greedy pattern matching in shell script
Hi all,

Is Perl included by default in Ubuntu? I'm trying to write a program using as few languages as possible, and since I'm using a few Perl one-liners to do non-greedy matching, it's...
2,487
Posted By Zel2008
Thanks Scrutinizer, I managed to find a...
Thanks Scrutinizer,

I managed to find a solution in Perl:


perl -pe "s/(.*?<GrayLevel>){1}(.*?)<\/GrayLevel>.*/\2/"


That being said, I know absolutely nothing about awk. Would you mind...
2,487
Posted By Zel2008
Problem getting Nth match in sed
Hi all,

I'm trying to create a sed command to get the Nth instance of an XML tag in a string, but thus far I can only ever seem to get the last one.

Given an XML string:
...
1,009
Posted By Zel2008
Thank you neutronscott, I didn't know that...
Thank you neutronscott,

I didn't know that about pid, now I think I know how to fix this. :)
1,009
Posted By Zel2008
Thanks neutronscott, I can only get a pid...
Thanks neutronscott,

I can only get a pid when MyProg is in the background, that's the weird thing. If the process is in the foreground, the process id is empty. I wrote MyProg myself, and it...
1,009
Posted By Zel2008
Closing a graphical application by pid
Hi all,

I have a small graphical application whose only purpose is to pop up certain types of messages. Currently, I'm using it in a Bash script like this:


./MyProg "this is my message"...
4,800
Posted By Zel2008
As I said earlier, it does make a difference. I'm...
As I said earlier, it does make a difference. I'm required to make the screen black, but not turn the monitor off. If I'm using the term "idle" incorrectly, I apologize. But, what I'm getting from...
4,800
Posted By Zel2008
100% right Jim, that's exactly what I need to do....
100% right Jim, that's exactly what I need to do. Basically, we're rewriting a Windows application to run on Linux, so I'm supposed to emulate that functionality of being able to go idle and then...
4,800
Posted By Zel2008
I don't think this is quite what I'm looking for....
I don't think this is quite what I'm looking for. I want the screen to show a black screen, but I don't want the monitor to turn off. From what I understand after doing some research, the command you...
4,800
Posted By Zel2008
OK. It's an Ubuntu system, 13.04 I believe. I...
OK. It's an Ubuntu system, 13.04 I believe. I don't know the monitor specifications, is that necessary?
4,800
Posted By Zel2008
Showing a black screen
Hi all,

Is there a way, on the command line, to show a black screen WITHOUT turning off the monitor? Also, is there a way to make the computer show the last screen before the black screen as soon...
10,315
Posted By Zel2008
Thank you both, I didn't know that bash runs in...
Thank you both, I didn't know that bash runs in subshells. I learn something new every day, that's the mark of a good Friday. :) Everything's working fine now.
10,315
Posted By Zel2008
Thanks clx, That's almost got it -- it seems...
Thanks clx,

That's almost got it -- it seems to work outside of a loop, but not inside a loop. If I have a setup like this:


#!/bin/bash
myVar=0
perl -ne 'print if s|blah||' test.xml | while...
10,315
Posted By Zel2008
Bash counter increment not working
Hi all,

I'm using Bash 4.3.8 on an Ubuntu system, and no matter what I try, incrementing a counter won't work. The simplest example would be something like this:


#!/bin/bash
myVar=0...
Forum: Linux 06-04-2013
3,863
Posted By Zel2008
Restricting directory access in Apache server
Hi all,

I have a web site that I'm serving on an Apache server, and it has a number of different folders, but I only want the user to be able to access certain ones -- the majority of them I don't...
1,662
Posted By Zel2008
Trouble accessing SVN on Ubuntu
Hi all,
I'm running SVN on Ubuntu 12.04, and I have to connect it to an online repository accessed by HTTPS. I can check out files from the repository just fine with the command:

svn checkout...
2,193
Posted By Zel2008
Argh, I meant a compiling macro! *facepalm* Can I...
Argh, I meant a compiling macro! *facepalm* Can I do it with a compiling macro?
2,193
Posted By Zel2008
Defining a new suffix rule in a Makefile
Hi everybody,

I have a Makefile where a single suffix rule is defined:


.SUFFIXES: .cpp
.cpp.o:
${CXX} ${CXXFLAGS} -c -o $@ $<
And I'd like to create another where an additional...
1,575
Posted By Zel2008
Thank you edidataguy, that works perfectly! :)
Thank you edidataguy, that works perfectly! :)
1,575
Posted By Zel2008
Chopping off the last directory in a Makefile variable
Hi everybody,

I have a Makefile where I need to use an environment variable that I set, MYBUILDPATH. The variable can be different depending on the computer, but it always ends with...
Showing results 1 to 21 of 21

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