Programming :: Awk - Input From One Line - Execute Program - Input From Next Line - Execute Program
Sep 25, 2010
I have a file with two fields of numbers that I want to use as input for another program.
Code:
The above code does not work, as I think it would take the whole first and second fields as the input for one particular instance of the program 'inputbashangle'. What I want is to get the first two numbers from the first line of the file 'outfailtest', execute 'inputbashangle' with them, then move on to the first two numbers of the second line for all the lines of 'outfailtest'.
View 9 Replies
ADVERTISEMENT
Sep 27, 2010
I have a machine with 8 cores. I have a directory of input files that I need to process using a non-parallelized program. I would like to write a script that works its way through a list of commands executing 8 commans (i.e., instances of this program; each with specific flags having to do with the current input file) until the list of commands has been exhausted. Is there an easy way to do this?
Code:
hamstrsearch_local-hmmer3.pl -protein -refspec=lotgi_2713 -hmmset=lophotrochozoa_hmmer3 -sequence_file=Aplysia_californica.fas -taxon=ACAL
View 3 Replies
View Related
Apr 6, 2011
basically i have to create a simple program with will continually read input from the user until they enter a blank linei know how to read in certain input but not sure how to get it continually in a loop
View 2 Replies
View Related
May 1, 2010
I installed Lucid. I used to have Ubuntu 9.10 and to connect my iPod to my laptop's speakers. There was an option in 9.10 in the Sound Options to change the Mic Input into a Line Input. But now unfortunately I can't find it in Lucid have only 2 audio ports in the laptop: Headphone port, Mic port.
View 9 Replies
View Related
May 5, 2010
I would like to use Japanese kana (hiragana, katakana, kanji) on Ubuntu but everything that I've tried to get it set up and running isn't working. The Spanish that I have set up is working perfectly so far.
I've read, the SCIM input program should start up automatically when loading a program, it doesn't. When I have it loaded I cannot seem to get the input working.
View 9 Replies
View Related
Mar 30, 2011
Assume two applications, Application A and Application B. Both are written in C language.I had tried to use system() function in Application A to execute Application B. It success, but Application A cannot continue its own tasks before Application B exit. I want Application A to execute Application B, but Application A can continue its tasks without waiting for Application B to exit.
View 3 Replies
View Related
Dec 23, 2009
I am trying to write a script that takes an input file ($FileName) and an intermediate file ($FileName.info) and removes lines from $FileName if the value in $2 of $FileName.info is <75.
I can't figure out how to feed only one line of the .info file to the if statement at a time so that it will perceive it as an integer instead of a list.
The error I am getting now is ./script.sh: line 6: [: : integer expression expected
Sample input $FileName
Code:
Code:
Code:
Script so far:
Code:
View 10 Replies
View Related
Apr 15, 2011
I have problems to get it work. i have tried to use pm-utils, but it does nothing.
What is need is to kill application, when pc is going into suspend to ram and run that application again on wake. It's a graphical application.
View 1 Replies
View Related
Jun 21, 2011
I'm writing a program which now accepts user input:
Code:
echo "Enter a date in the format YYYY MM DD hh mm ss."
read gregyr gregmo gregdy greghr gregmn gregsc This lets the user input a date and time, such as 2011 06 21 15 12 45, and have each number assigned to their corresponding variable. Later in the program, these variables are put into an equation, and then the terminal spits out the answer. Now I have to have the program read all of the lines from a text file, which is in this format, assign the variables.
View 7 Replies
View Related
Oct 15, 2009
I would like to execute an already written C program that I am running on my embedded Linux, but from afar - through a HTML page. I am running an embedded Linux on my FPGA prototype board with a MicroBlaze soft processor. On this Linux i am running a httpd web server - I can serve html web pages to the outside through Ethernet connection. Now, I have a program written in C in this embedded Linux in /bin/gpio-test that does some stuff with my IO devices. Now I would like to control these IO devices through HTML web page - so I would like to be able to run this gpio-test program from a html web page and possibly send the program some parameters.
View 2 Replies
View Related
Aug 14, 2010
I am creating a 15 integer array which is input from the user and outputted for the.
Ex.
Enter the array values: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Your values are: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Code:
View 4 Replies
View Related
Apr 11, 2010
i have to write a program which checks the information inside a text file to make sure it is all integers and then convert the integers to roman Numerals. My program seems to have a bit of a problem and im not sure where exactly the problem is....
Code:
#include<stdlib.h>
#include<string>
[code]....
View 8 Replies
View Related
Apr 13, 2011
I started to run a C++ my program in Linux and I don't know how to test my program that works fine with a text file. This is a project for my uni and to explain more clear, My program is a sample database for modify or add and search and it read data from a binary file and also write into a binary file. I have got an input from my lecture and she said after compiling in Linux I must write:
1-to compile:
Code:
g++ (files with cpp)
2-to see the output:
Code:
./a.out
3-to test with input:
Code:
./a.out < input.txt >
My problem is in step three. What I must write in the command part after" step2" to see the output?
View 3 Replies
View Related
Mar 10, 2011
How do i take a single line of input from the user in a shell script?
View 3 Replies
View Related
Apr 7, 2010
i am trying to write a program which will read input from a text file, check if each line contains any alphabets and then display a message imforming me if there is an alphabet in each line. My text file is formatted in this way...
[Code]....
View 2 Replies
View Related
Mar 3, 2011
I have an executable with input options, like so:
Code:
./executable -n 42 -s 42
I've added gcov to the makefiles (compiling with --coverage, -fprofile-arcs, and -ftest-coverage, and linking with -lgcov). It builds fine and creates executable.gcno.
When I try to run gcov, gcov things the options belong to it:
Code:
$ gcov ./executable -n 42 -s 42
gcov: invalid option -- 's'
Usage: gcov [OPTION]... SOURCEFILE...
When I use quotes this happens:
Code:
$ gcov './executable -n 42 -s 42'
executable -n 42 -s 42.gcno:cannot open graph file
The command line options must remain. How can I get gcov to generate the same .gcno file it later looks for?
View 2 Replies
View Related
Jan 11, 2010
Title : Author : Price
France : Mark : 40
Persia : John : 50
how i arranged my database. I am trying to write aprogram which does a search either using Title, Author or both.
[Code]....
but i am still unclear on how i am able to make the program check if either on of the input(either $Title or $Author) is not filled up, and if one of it is not filled up, use the other one which is filled to do a search.
View 6 Replies
View Related
Nov 4, 2010
I need user to input a password through command line in Windows cmd prompt. Is there a way to encrypt the input (such as put it into ......) when user is typing ?
View 2 Replies
View Related
Jun 18, 2010
Code: cmd='date | wc'
$cmd If this script is executed, an error is generated. The reason written was that "The execution fails because the pipe is not expanded and is passed to date as an argument".What is meant by expansion of pipe. When we execute date | wc on the command line, it goes fine.then | is not treated as an argument. Why?
View 4 Replies
View Related
Feb 7, 2010
I am wanting to write a program that runs a program or command-line. Is there are way of making a program that activates a command-line (for example executing 'ps -a -f' or '/home/shared/fah').
In addition to that, I want the program to do a 'ps -a -f' and put the results in a buff, how could I do this.
View 5 Replies
View Related
Oct 11, 2010
I thought about this a while ago when reading through a Python tutorial and I googled some and couldn't find an answer. Now I want to know it for Ruby, also, and it's more important now because I want to invoke Ruby with -w.
How can you use:
Code:
with a -w option to ruby, like:
Code:
This doesn't work and I can't find an explanation of how to do it.
Code:
View 1 Replies
View Related
Feb 14, 2010
I was wondering if it was possible to execute a program from RAM, like having the file data in a bash script variable and then running it.
Something like this:
ls=`cat ls`
$ls
So is it possible to run a program without touching the hard disk and without creating tmpfs or ramfs (it would need to be standard user privileges).
View 1 Replies
View Related
Oct 21, 2009
Im trying to install a program with bitrock installer but im asked to logon as root or become super user. When trying to logon as root from logon window I get message that "cant authenticate user" Ive tried to find a place in "users and groups" to become superuser but cant find it.
View 9 Replies
View Related
Jan 24, 2010
Following is the IDL program found on the internet but i dont know how to compile and execute (even dont know can it be done under linux).
Code:
View 9 Replies
View Related
Jan 21, 2011
I am trying to execute a limux command in c program using system system call, but the dont want it to dump the output or error logs on the terminal.
View 2 Replies
View Related
Oct 5, 2009
I'm trying to execute a C++ program on PowerPC. But I am facing an error saying: "error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory". But a C program gets executed successfully. The programs are cross compiled using PowerPC cross compiler.
View 1 Replies
View Related
Dec 28, 2010
If i have a python file with a function call_me(a,b),how can I call this function from the command line ,after i compile the program?
View 5 Replies
View Related
Apr 23, 2011
On my first card of ALSA (alsamixer -c 0) I would need to record the Line only.
View 1 Replies
View Related
Jan 26, 2010
Some time ago I installed LAMP in my server, but now I need to execute .php files from the command-line (in order to execute some manteinance scripts for mediawiki). Seems that the PHP files running in the server are run thru some kind of "module" in apache2. Can I tell apache2 to run a .php file in command-line mode using that php module? Or should I install a fresh copy of php-5? Won't that interfere with apache or mangle the system?
View 4 Replies
View Related
Dec 18, 2009
I'm building a Cluster with 20 small Compaq ipaq PC's as the nodes. I have absolutely no room for any keyboards on this cluster. The PC's require a keyboard to boot, and there are no BIOS settings I can adjust to fix this problem, and no BIOS updates. I have found a small DOS .com program by Compaq called NO_F1.com it's designed to allow the computer to continue to boot without a keyboard. it's only 172 bytes in size. It sets a bit in the CMOS which allows the boot process to continue without a keyboard. It does not permanently set anything, so it needs to run each time the computer starts.
Is there any way I can execute this program very early in the boot process every time the node boots ? I thought about dissembling the program and trying to modify the boot loader, or some other ASM program, the program is only 172 bytes. But thats really over my head. What could I try, I don't know what to do. Also, I have no floppy drive and no CD drive to boot from, only USB or hard drive.
View 5 Replies
View Related