General :: Terminal Executes Mi Script To Create Vector

Dec 6, 2010

I am trying to create a script that creates a vector and displays it. I used the command inivec but it didn't work.

[code]...

How do I make it so the terminal executes mi script to create a vector. I know MV is the name and the output should be aa aa aa, but nothing?

View 3 Replies


ADVERTISEMENT

General :: How To Create Multiple Children Before Any Child Executes

Aug 27, 2010

Iv got an assignment to complete and I'm stuck at the basic level.

A part of the assigned problem is :

The main process will read the file, and will create N number of child processes (Where N is taken as input) as early as possible before all the children starts its execution. Before creation of each child, the main process should read the file to store all the required data in then corresponding data structure. Child processes should not read the file for getting their information.

As far as my knowledge about this , the child executes before the parent. How do I make the parent not pass the control to it's children before it finishes creating all the children?

View 3 Replies View Related

General :: Bash Scripting - Executes A Few Perl Scripts - Create A New Array And Take The Hostname

Apr 4, 2011

I'm writing a bash script that executes a few perl scripts. One of the perl scripts that I need to execute requires two arguments with it. The arguments are stored in a txt file, each line contains a hostname and its corresponding IP address separated by a ":" (colon), the txt file looks like this below:

[Code]...

I'm not sure if it's the best way to accomplish this but here it goes. In the bash file, let's call it getHosts.sh, I create an array and assign each line of the file to an element in that array. I then think I need to create a new array where I take the hostname (which is before the ":") separate it from its IP address and place the IP address on a new line just below the hostname (this way I can reference to it like $hostNames[$x] would be the hostname, and $hostNames[$x+1] would be its IP address). So the new array would now look like this below:

[Code]...

View 4 Replies View Related

Programming :: Create A RS232 C Program That Executes A Series Of Commands Down The Line To A Robot?

Jan 5, 2011

I am trying to create a RS232 C program that executes a series of commands down the line to a robot. Everything seems to work fine, except any sequential write to the serial port. At first I thought it was the UART's buffer being filled too fast, but even with a 50 uS delay it still throws the error.

Here is my code:

Code:
#include <termios.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/signal.h>
#include <sys/types.h>

[Code]...

View 1 Replies View Related

CentOS 5 :: Create A CentOS Based LiveCD That Mounts A NFS Share And Executes One Script?

Aug 14, 2009

I'm trying to create a CentOS based liveCD that mounts a NFS share and executes one script there. The NFS never mounts altough while logged I can mount it with the very same command that I use in the KS.

In the %post I have :

%post --log=/tmp/post.log --erroronfail
mkdir /mnt/nfs
mount -o nolock 10.23.1.1:/csc/RemoteHome /mnt/nfs

I added the --log in order to debug, but nothing is written in /tmp/post.log. I tried redirection on the mount command with >> /tmp/debug.log but this is not written. Maybe during the post sequence /tmp is RO ? Anyway, I tried with ifup lo, service portmap start in the %post, but doesnt change (I even have a service : command not found in the live cd creator output).

Here is the remainder of the KS :
lang en_US.UTF-8
keyboard us
timezone US/Eastern

[Code]...

View 10 Replies View Related

General :: Get Some Ebooks On Vector Graphics?

Jun 2, 2011

From where can I get some Ebooks on Vector graphics. Also an Ebook on Operating systems

View 1 Replies View Related

General :: Relationship Between Vector And Irq Number?

Dec 9, 2010

I just found in kernel-2.6.35.3, in file arch/x86/kernel/irq.c:

unsigned int __irq_entry do_IRQ(struct pt_regs *regs)
{
struct pt_regs *old_regs = set_irq_regs(regs);
/* high bit used in ret_from_ code */
unsigned vector = ~regs->orig_ax;

[Code]...

Does any body know the relationship between the vector number and irq number?

View 1 Replies View Related

General :: RT Process Stuck As Runnable 'R' / But Never Executes

Jul 28, 2011

I have a hard to reproduce (seen a couple times in a month) issue where my program seems like it is hung (not increasing in cputime), however, it is in the runnable state and never gets to run. The cpus are 99% idle according to vmstat and the load is 5 (which is equal to the number of threads in my program that are in the R state) according to ps, and there are no processes on the system in the 'D' state. The other major oddity is that one of the migration threads has a cputime usage almost equal to the uptime of the system. Typically migration threads have a cputime on the order of seconds across hundreds of days of uptime, but in this case the migration thread has DAYS of cputime according to ps.

The last time this happened, I went around saving as much /proc/X information that I could into logs for referring to later, before I had to reboot the box to get it running back to normal. (because in this state, a kill -9 is not heeded by my program)Does anyone have any idea what could cause this? I am not sure if this is a scheduling bug or a bug in my program (the likelier case).I have a wealth of logs to look through if anyone can suggest something specific to look for.

View 4 Replies View Related

General :: Unix Script That Executes Sql Query In A While Loop?

Jan 8, 2011

I have a logfile which looks like:

tableabc 1786rows
tabledfg 8374rows
tablefhd 726rows

[code].......

Now i have to writ a script which takes this log as input and quesries the DB for each table. So,I want to: input the logfile
start a while loop.So,while read LINE This variable LINE would store the table name by CUT using a delimiter once the table name is ready it makes a connection to DB and queries the table for its rowcount writes the rowcount to an O/P file.

View 3 Replies View Related

General :: Vector 7.0 Alpha And Setting Up Nvidia Driver?

Oct 29, 2010

so I have been messing around with the new Vector 7.0 alpha and wanted to install the nvidia driver and see if it would work. my video card and cpu are as follows

Code:
root:# lshw
PCI (sysfs)
vector.linux.net
description: Desktop Computer
width: 32 bits

[Code].....

View 1 Replies View Related

General :: Create A New Terminal Window From The Command Line In RHEL 5.3

May 18, 2011

I use putty to get to my RHEL 5.3 workstation from my Windows laptop.

Typically, if I want a new terminal on my windows 7 workstation from another terminal or mc, I have to type start and I will see a new terminal window running the default shell.

QUESTION : What is the equivalent command in RHEL 5.3 (and or solaris) to create a new terminal window from the command line ? I will be entering this command from the shell prompt or mc's command line.

In Windows, if I want to start another terminal and in that terminal, I want to run a program, I can do "start program.exe arg1 arg2". this will create a new terminal window and runs program.exe in that terminal window. I don't have to create a terminal and then in a separate step run the program. How can I do this in Linux ?

View 3 Replies View Related

General :: Create Custom Terminal Boot Mode Under Ubuntu?

Aug 5, 2011

I wonder if it would be possible to create a custom boot menu entry in grub under Ubuntu (11.04), that boots the system into terminal instead of the login screen.

The effect should be something like the root shell in (rescue mode) boot menu entry, one that gives me access to a root shell or a less privileged shell, without the need to select "root shell" explicitly.

If possible, I also would like to customize the shell started by, most preferably by specifying a shell script to run so that I can start something other than bash, like vim.

My intention is to create a "fast" boot mode to give me a usable system within seconds (to take notes, for instance) without needing to start GUI. Therefore, it is preferred that the silent option is turned on.

Note: There is a requirement: that no existing feature of the system is removed. That is to say, the gnome desktop (and Unity) should remain intact, and is only disabled when I choose this mode.

View 2 Replies View Related

General :: Shell Script That Logs Into Another Machine And Executes Some Commands?

Jan 5, 2011

I am trying to write a script that connects to a server and executes some commands on there. Something like this:

#!/bin/sh
telnet remote_machine
cd /home/some_directory
cat a_file_in_current_directory

Unfortunately after login/password I guess the script doesn't jump past the telnet command, until I exit. What do I need to do to make the script start executing commands in the remote shell?

View 1 Replies View Related

General :: ...c++/4.1.2/bits/vector.tcc:452: Error: Expected Unqualified-id Before (token

Dec 10, 2010

I am trying to install NS-2.1b9a in Fedora 8.0. I have already installed gcc-3.3 and made new link to the newly installed gcc. I used patch made for NS-2.1b9a (found in [URL]...-8-ubuntu.html) to install in Fedora 8.0. Now, when I run ./install I get follwoing error.

[Code]..

View 2 Replies View Related

General :: Boot Sector Of Installed Vector Linux Doesn't Have Boot Signature

Feb 13, 2011

upon adding the installed VL on the existing LILO.. (btw i have not installed its LILO on the installation setup) since i know that i will just add it to the "existing" LILO the error above arises upon doing the lilo run command.$adding Vector6.0 etc.FATAL : Boot sector of /dev/hdc13 doesn't have a boot signature.i have tagged the /dev/hdc13 bootable via CFDISK. but same problem arises..

View 8 Replies View Related

General :: Unable To Compile "Gnome-Vector-Network-Analyzer"

Mar 18, 2010

I am trying to compile the gtk+/gnome project called "Gnome-Vector-Network-Analyzer" which i got it from link : [URL]

In order to install it when i compile it using ./configure , i am unable to "make" it as it throws an error that it can not find the makefile.

the output i get from my terminal is :

student@student-desktop:~/Downloads/Analyzer-0.1.2$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk

[Code].....

View 1 Replies View Related

Ubuntu :: How To Tell Which Binary Actually Executes

Apr 20, 2010

Is there a command that can tell me which binary actually executes for some program name? "whereis" seems to do something different.

Specifically, I am trying to hunt down and kill a python 2.6 installation that just won't die.

whereis just seems to be returning anything with "python" in its name, but I want to know which binary thinks it is python 2.6.5. (By the way, I've tried all the above manually, and it isn't any of them)

View 6 Replies View Related

Debian :: Create SubDomains Using Terminal?

Aug 18, 2011

I am not using cpanel or anything, just SSH PuTTY client. my domain is [URL]now I want to craete a sub domain i.e [URL] , how will I create this ? so I can upload files to the sub domain

View 1 Replies View Related

Ubuntu :: Can Create Accounts From The Terminal

Mar 17, 2010

I was told to create accounts from the GUI through K > Applications > System > User Manager or something like that, but the "user manager" icon is missing. Would it be possible to make new accounts through the terminal (bash, Konsole, whatever you want to call it)?

View 4 Replies View Related

Ubuntu :: How To Create Launcher From Terminal

May 27, 2010

You know when you right click the screen and you can make a launcher with a custom command? Okay...how would I do that from the terminal?

View 6 Replies View Related

Programming :: Out Of Range Vector Iterator?

Mar 20, 2011

I'm not really a C++ noob at all, but I am a little rusty at the moment. Still, I CANNOT figure out what is wrong with the following code. I'm using Visual Studio 2010.

Code: #include <iostream>
#include <fstream>
#include <vector>
#include <string>

[Code]....

I THINK I got all of the pertinent code. Anyway, it fails at the *** line. I CANNOT figure out why. If I modify it to be linein.size()-30, it STILL gives me an error. That makes zero sense.

View 3 Replies View Related

Programming :: Implement A Set Class (like In Stl) Using A Vector?

Sep 3, 2010

i need to implement a Set class(like in stl) using a vector.Here is my code that doesnt work corectly:

Code:
#include <iostream>
#include <vector>
template<class T>
class Set
{

[Code]....

View 2 Replies View Related

Programming :: Stl Vector As A Member Of A Struct?

Jan 17, 2011

is there any problem that might rise by by having a vector as a member of struct in c++ as follows.ex.

struct A
{
int a;

[code]...

View 2 Replies View Related

Ubuntu :: Create A Shared Folder Using Terminal?

Mar 19, 2010

I am using putty(Windows XP) to connect to one of my remote ubuntu machine. I want to create a shared folder on that machine. Please help how to create a shared folder using terminal.

View 3 Replies View Related

Ubuntu :: Create New Administator Account In Terminal ?

Mar 30, 2010

Whilst playing around with my computer the other day i accidentally set the workspace feature to have 36 workspaces. This subsequently caused my computer to run very slowly and both panels and the bar at the top of the windows (with the close and minimise things) to dissapear. This means that i can no longer open programs easily (i have to open a folder from the desktop and then navigate to filesystem/usr/shared/aplications and then open them from there and only a few have full functionality. They also run very slowly. I have been looking for options to change it back but cannot. I have managed to use terminal to create a new working account although it is not an administrator account which i need it to be.

How to do one of the following:

A) Fix the first account (restore it to working order)

B) Make the new account an administrator in terminal (I have tried to using users and groups but it freezes)

C) Create a new administrator account in terminal

View 9 Replies View Related

Ubuntu :: Create Partition Table From Terminal?

May 20, 2010

Can it be done? If so, how? As far as I know it doesn't work like mkfs.ext3 and all that.

View 2 Replies View Related

Ubuntu :: Create A Shortcut To Run A Program On Terminal?

Jul 7, 2010

I want to create a shortcut to run a program called RoomEqWizard but the only way I know how to run the program is to open a terminal and type the location to where the program is and call the program file. I already tried creating a shortcut on the main menu but I get a "error creating the child process for this terminal" message every time...

View 1 Replies View Related

Ubuntu :: Conky Startup Script Never Executes

May 6, 2010

I'm having trouble getting conky to boot friendly-like with the gwm. If I just set conky as a start up program, it floats above other windows, it seems to have loaded before the desktop actually did. So I googled it and found that many people use the conky shell scripts to make it sleep until the desktop load. I created one, made it executable, and restarted to see the effect and found that conky never launched at all (not visible, no running process).

Here is my startup shell script for conky:
Code:
#!/bin/bash
sleep 10 && conky;

This is how it should look if working properly. If I launch conky after login, it looks like this every time. [URL]. This is how it looks if I simply set it to open upon startup with no script. [URL]. If I try to open it with the script, I simply never see anything in conkys place. It seems like the script never executes. I've tried setting longer and shorter sleep times, but I never see so much as a single instance of conky running.

View 8 Replies View Related

Ubuntu :: Secondary Hd Permission Denied On All Executes?

Jun 7, 2011

I completely switched to Ubuntu 6 months ago. I kept my secondary sata hd as ntfs for a while but started having permission problems. I switched it to ext4 and that worked for a while but then it started having permission problems again. Specifically, I can't execute anything on that hd drive. I converted it to ext2 and it still didn't help. I have 2 executable modules that I moved up to the root directory to make this simple and they look like this:

tom@tom-desktop:/media/sda1$ ls -l
total 3088
-rwxr-xr-x 1 tom tom 3099451 2011-04-23 16:36 bochs
-rwxr-xr-x 1 tom tom 26064 2010-09-11 08:48 bzip2

[Code]...

View 6 Replies View Related

Programming :: Passing The Char * Vector Argument?

Jun 19, 2010

I am trying to simulate a shell. So what I do is checking of having the parameters from standard input, suc as "/bin/ls -l /home/france/Documents", and then passing them to function execute, which at some point calls execvp(argv[0],argv)The problem is that I don't succeed in using these arguments, while if I call execvp(paramList[0],paramList) it works!!!! Where paramList is exactly what I would put on standard input, but defined statically.

Code:

#include<unistd.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>

[code].....

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved