I couldn't really decide where this should be posted, but this is the most general of the forums. Anyway, I've been playing a wargame on intruded.net in which some of the challenges require me to pass hexvalues into the programs as character values. All is well with this, and usually I would use the shell to pass it in, but most of these programs use the gets() method to get my input.
Here comes the problem... The other day I was using my desktop which runs slackware 64 13.1 to do these challenges. My method was to use "echo -e 'xefxbexadxde'" to print them to the shell's standard output and then highlight and copy the resulting values to paste to the program. This works just fine on slackware, but when I repeated the same processes on Ubuntu 64 10.04 (which runs on my laptop) the 'xde' always turns up to be 'x00'. Then I tried some other levels with similar responses, not all the hex values convert to the correct ASCII characters.
When I'm running a flash site like, Pandora, it stops working when I open another tab with flash running like, Hulu. Now it doesn't stop working right away but in time it does.
Then screen on that tab usually goes grey.
Now this doesn't happen all the time but enough to get me flustered.
I've got a problem with a piece of code. Basically, I use my listRegularFiles function in two separate places in my code. The first time I run itit appears to work perfectly well. If I use it a second time, however, it blows a gasket. I'll post my code below, and if anybody has any ideas,Here's the code for listRegularFiles:
Code: # ps 22355 pts/3 00:00:00 bash # # ps -l 22355 F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD 0 S 519 22355 22354 0 75 0 - 1338 wait4 pts/3 0:00 -bash # # ps -o pid,priority,command 22355 PID PRI COMMAND 22355 15 -bash #
Why are the priority values of the process different? What is the difference? Is the value 15 the "nice" priority? Then, what is the value 75? Please, explain the difference of each result.
Is there any way i can pass two / three values to grep. Basically i want to list the lines in the file with three different values. Currently I'm using three grep to get my work done.
I need to set ulimit values according to I used Code: ulimit -c unlimited ulimit -s unlimited ulimit -u unlimited But after I log again to my session values are set to default. Now can I set this values so they don't change after log out of after reboot?
My cpu is set via Gnome-power manager to automatically speedstep under demand....
the thing is i have a few nice level 19 processes running most the time that eat up all the idle time, this forces my clock speed up and as such makes the fan noisy and uses more power...
basically what i would like to do is to ignore process load with a nice over a certian level when determining weather to speed step.
This is a Fix message - it is a type of protocol for transmitting financial dataeach number followed by a = sign is a tag - each tag means something. some tage are moe important than other.
In my file there are 2 fields separated by space.Sample content of file are as follows:56060 154242 053030 0Now i want to check second field of the file and if all values in second field are 0(zero) and send mail containing all contents of the file
I have been asked to write a program to extract the width and height values from .gif, .jpg and .png files. For .gif I was able to find the values in the header records, but it is not so straight forward for the other two formats.
Does anyone know if there is a Linux utility that will do this for me?
I want to read values from a file...these are basically one word values, that is to say that the text file I want to read from contains lines of word length 1, as in:
I downloaded, configured and installed ImageMagic-6.7 without too much trouble.
I'm trying to install the perl module Image::Magick, and using MCPAN just errors out big time.
I read in the docs for installing ImageMagic, that I need to edit the Makefile.PL in the PerlMagick directory before I can do a make / make install.
I'm supposed to change the LIBS and INC, but I have no idea what I'm supposed to change them to? Do I just add to what's there? Where do I find the values to add/change to?
I'm doing some bash-scripting and want to be able to print some text (just plain text) files into the new bash-scripts, created within a loop. Here's a short example of what I do:
Code: # main bash script # #!/bin/bash ##Filename variable1=10 for ((j=0;j<=40;j+=1)) do ## Create another bash-script echo "#!/bin/bash" >> bash_script_$j ... some stuff... cat file1.txt >> bash_script_$j ... some more stuff... done where the text file (file1.txt) I want to print in the the new bash script looks something like:
Code: # file1.txt # ...some stuff... logsave log some_program($variable1) mv output_$j folder_$j/ ... some more stuff...
I.e, the text file contains variables such as "$j", "$variable1" etc that are undefined. Doing the above works for creating new bash scripts (bash_script_1 - bash_script_40) but the variables are not determined. I would like, if possible, to somehow print the text in file1.txt into the new bash-scripts with the variables determined, i.e:
Code: # bash_script_1 # ...some stuff... logsave log some_program(10) mv output_1 folder_1/ ... some more stuff...
The text files I read are quite extensive so I would really prefer not having to paste them into the FOR-loop directly.
I have a lot of files with thousands of rows and usually two columns of data. Column 1 is a coordinate, column 2 is a score. I want to delete rows that have a value in column 2 over, in this case, 50.
I try to convert a doc file to a pdf file with the linux bash. I tried different ways like jodconverter, ghostscript, postscript and so on, but all didn't work as espected. Additionally I can say that I have only the bash.
Specifically, I'd love to know what the valid values of:
And, where I can find this information? I've always wondered if it was documented somewhere, or if there was an interface into the kernel to query for it.
I would like to grep all values other than encrypted password from /etc/shadow fileFor example,each line consists of 8 fields separated with :/The only thing that I want not to print out is the contents between first : and second : (encrypted password)
I've mostly mp4/flv media files,i need to convert them to mp3 to put in my mp3 player but at the same time i like to adjust the mp3 bitrate to save space and maintain quality sometimes. How do i actually do that in Linux. Is there any GUI program that performs the job for me quickly ?
I have to read a couple of numbers from a random.txt file. In this .txt file there are random numbers. They are separated by a space. Example if you opened test.txt:
test.txt :1 6 1 3 6 8 10 2 4
I would like to read those numbers using CAT and store them into an array:
numlen=${#num[*]} - (must be like this because it is a part of a larger program)
My question is about TCP parameters in Linux. By now, I want to change the default values of:
Initial Timeout ACK Delay Idle Connection Timeout
I have a Linux Box with kernel 2.6.x and 2 ethernet interfaces. I know TCP is a stack that doesn't have anything to do with ethernet devices. Said that, the question: is there a way to set custom values for each interface? For example, a server listening to connections in eth0 would use one value for Idle Connection Timeout and another server listening to connections in eth1 could use a different value for that parameter.
I understand that .tar.gz and .tgz are equivalent to each other.
I did some checking as alway online. I am however stuck how to you make files with a tar.gz extenstion become .tgz. In the case of it being a compressed file is there a right and wrong way of doing this.
it seems that I always encounter things slightly off the beaten path, against my less then optimal knowledge of the man pages.