Programming :: Error While Executing Scripts And Initializing Exe's?
Oct 13, 2010
I am having the following error while executing script and initialing my application
./ss.sh: line 1: kk.sh: command not found
./ss.sh: line 2: mon.exe: command not found
Can somebody assist ASAP.
View 4 Replies
ADVERTISEMENT
Oct 14, 2010
While initializing my application the following errors is returned:
Bash profile for the user is as follows:
View 1 Replies
View Related
Nov 20, 2009
I have a struct (small instance so not using code brackets )
struct random {
int a;
int b;
}example;
What i am trying is
example={0,0};
and it gives an error how to initialize all the entries within a struct to zero? In the above example i have used integers but what if they are some other data structure for example another structure?
View 2 Replies
View Related
Nov 5, 2010
Following is the way I saw a variable initialized in C
Code:
static const unsigned int rtl8139_rx_config =
RxCfgRcv64K |
(RX_FIFO_THRESH << RxCfgFIFOShift) |
(RX_DMA_BURST << RxCfgDMAShift);
on following link
[URL]
I have initialized variables in past but above initialization I could not understand what is it?
View 4 Replies
View Related
Nov 4, 2010
I am using semaphore.h I declared a variable of type sem_t. I am able to use the variable without even calling sem_init or sem_open, and it is working properly.if the variable is automatically assigned some value? Also would I run into any trouble doing so?
View 1 Replies
View Related
Mar 12, 2009
I'm making script for automated compiling of one program which would output builds optimized for many architectures. For clearancy, I do each build in it's own catalogue and list of builds with their respective catalogues would be stored as array. I'm using this guide as reference. It describes making array as naming a variable with additional brackets denoting it's position in array.
In my code, it looks exactly like this:
Code:
mtune[1]="build/mtune/athlon"
mtune[2]="build/mtune/athlon-4"
mtune[3]="build/mtune/athlon-mp"
[code]....
But upon invoking $mtune or any $mtune[x] variable, output is blank, like the variable(s) were never initialized. What am I doing wrong?
View 1 Replies
View Related
Oct 12, 2010
I am having a problem initializing the Pmw megawidgets for Python 2.6.I have Pmw_1_3 loaded in the site-packages directory.
View 1 Replies
View Related
Jun 7, 2011
The code below defines an array of structures in a class. I would like this to be a Static array and then initialize the array in a initialization method. I understand that initialization lists are the way to go but due to the size and complexity of the array I plan on using (the example below is a simple snippet that illustrates the problem) I would like to use the initialization method. However, I cant even get this thing to compile. The error says the reference to the ArrayOfStructs in the initialization routine is undefined.
l_long_Island
P.S. This is the error message
undefined reference to `ClassWithStaticArray::ArrayOfStruts'
class ClassWithStaticArray {
public:
struct IntegerStruct
{
[code]....
View 5 Replies
View Related
Nov 25, 2010
I made 2 files which are different from the program above one is temp1.h and another is temp2.c to understand how extern is used. So here is temp1.h
Code:
#include<stdlib.h>
typedef struct node * bond;
extern int jk;
and temp2.c is
Code:
#include<stdio.h>
#include<temp1.h>
struct node {
int data;
[code]...
I had declared jk in temp1.h as an extern int so why can I not initialize it in temp2.c?
View 5 Replies
View Related
Jul 9, 2011
Kernel 2.6.21.5, slackware 12.0 as 2.17 [I am speaking here about 80x86 processors, with their segment registers SS, DS, CS, ES.] In a source file for as, I wrote
Code:
.section _STACK
.rept 4096
.word 0
.endr
Now, in the .text section, I want to initialize SS, the stack segment, to point to the _STACK section. In other assemblers, there was a special section for the stack, and the linker cared about initializing SS. Here I use a common section for the stack. For a segment such as DS, I could write
mov ax,_DATA
mov ds,ax
But I don't think mov ax,_STACK would do with as/ls.how do I initialize SS?
View 4 Replies
View Related
Jul 12, 2010
I have installed slackware 13.1 on my friends laptop. Its an msi laptop . dual core 2ghz, 1gb ram nividia 9000 series.etc. everything is fine but after installing mplayer codecs from slackbuild and also xvidcore, i am not able to play avi files in mplayer. It is giving me a fatal error saying. error initializing -vo device. i tried to change the video driver. it was by default xv then i tried X11(xvid) then open gl and open gl with max textures . when i made it to open gl with max textures the video out came but it is lagging with the audio.
View 2 Replies
View Related
Mar 25, 2010
initializing a branch in one Launchpad project on multiple computers, or even upon reinstalling an OS? I know I sure haven't.
View 1 Replies
View Related
Feb 13, 2010
I have been trying to install pidgin via one click from the software sources and I can download the file fine but whey yaST2 starts, it hangs for a while and I get error. Also I can't get any updates as the same issue appears.
View 5 Replies
View Related
Mar 25, 2010
I got this error An error occurred while initializing the software repository Details: /etc/zypp/repos.d/Packman_repository_(openSUSE_11.2).repo:Line 2 is missing'='sign Try again? what is wrong???
when the YaST2 started there is no any repository and I tried to added new repository I got the error
Adding repository Main Repository (OSS) failed
View 9 Replies
View Related
Mar 20, 2011
I can't understand wd the error in my way with my sources list (was trying to installError given when I try to update is: An unresolvable problem occurred while initializing the package information.lease report this bug against the 'update-manager' package and include the following error message:'E:Type 'src' is not known on line 2 in source list /etc/apt/sources.list.d/tiheum-equinox-maverick.list'Sources list is: ###### Ubuntu Main Reposdeb http://us.archive.ubuntu.com/ubuntu/ maverick main restricted universe multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ maverick main restricted universe
###### Ubuntu Update Repos
deb http://us.archive.ubuntu.com/ubuntu/ maverick-security main restricted universe multiverse
[code]....
View 9 Replies
View Related
Jan 8, 2010
When I attempt to play a store-bought dvd using mplayer I get the following error: Error opening/initializing the selected video_out (-vo) device. I found that some folks were editing their .mplayer/gui.conf file to read vo_driver = "x11" and were having success with it. The link to that thread is here : Error opening/initializing the selected video_out (-vo) device. [Archive] - Ubuntu Forums my .mplayer/gui.conf file reads vo_driver="xmga" changing xmga to x11 doesn't . I'm running 64bit Karmic.
View 5 Replies
View Related
Nov 3, 2010
while opening any video with gmplayer it gives the fatal Error opening/initializing the selected video_out (vo) device. while playing with mplayer it doesnot goto full screen video output mode while pressing F.
View 13 Replies
View Related
Jun 16, 2011
I am new to Linux, how to install codecs, as when I am trying to install I am finding this error. An error occurred while initializing the software repository.
Details: Url scheme is a required component and sometime like repository can be loaded.
View 1 Replies
View Related
Mar 3, 2011
Why is the timer not executing?
Code: #include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <signal.h>
#include <time.h>
#include <pthread.h>
void func(union sigval sv)
[Code]....
View 1 Replies
View Related
Aug 24, 2010
what we are trying to do is, to let the customer click a button in the web browser, and then the web server to call a shell script to do the work. The output from the stdout && stderr of the script should be displayed in the web browser once finished or timeout, along with the exit code of the script.
The shell script is however not on the web server, but on another app server. So to call this script from the web server as the identity 'tomcat':
Code:
$ sh appuser@app-server:$appbin/app-script
The .ssh/id_rsa.pub thing is done, and we have no problem doing this in the command line so far.
Our loaded ex-colleage has left us the webpages (jsp) with code like these:
Code:
<%@ include file="jsp_functions.jsp" %>
<%
String cmd = "sh $appbin/app-script";
ExecResult r = new ExecResult();
[Code].....
View 6 Replies
View Related
Nov 2, 2010
I have an application, probably cpu-intensive because sometimes it leaves the cpu with 0% idle (in top). Sometimes it hangs ("Done" does not print) when executing this part, but most of the time it executes just fine. Is there any wrong with this code?
View 2 Replies
View Related
Aug 25, 2010
I need a way to read and delete text found before a unique string, then delete the string. I would like to have the text stored in a variable--or better yet--executed it as a shell script directly.I intend to execute the stored text in bash. It does not matter much what language the program is it, however efficiency is desirable. This script is not going to be used on large files, but it may be executed many times sequentially so the faster the script works the better. Here is an example:
exclamation-"It worked!"
echo $exclamation
cd
[code]....
View 7 Replies
View Related
Jul 8, 2011
I need to execute an external command with Python from Web. I know there is subprocess module that executes external programs but I'm trying to execute a command registered for the execution of a program. In this case when I execute my file in the shell everything is Ok, but from the Web it doesn't work.
View 1 Replies
View Related
Mar 20, 2010
what i did is created a file called pro3types but the script starts & by pass the file. i added +x to file ran the process but still no luck. i was wondering what else i should change to get the menu to the sub-categories of product3 after users selecting it. all I need to get the pro3types runs after users selecting product3 from the previous menu. need more info please see the thread: "Adding New Selections to the existing Script"
[URL]
but here is code:
Code:
#!/bin/sh
echo SELECTTYPE
export -n selecttypechoice
[code]....
View 5 Replies
View Related
May 25, 2011
I am learning about OS and I wrote this simple forking program... Here's the code..
Code:
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
[Code].....
How can it print the first statement, that is BEFORE the fork() statement twice?
I am running Natty 11.04 btw..
View 8 Replies
View Related
Jan 14, 2010
Is [URL]... down? I try to add the repository:
sudo add-apt-repository ppaorg-edgers/ppa
and I get this error:
[code]...
View 5 Replies
View Related
Jun 16, 2011
Running following script for checking root ssh login status.
Code:
Flag=`cat /etc/ssh/sshd_config | grep "^PermitRootLogin"`
if [ -z "$Flag" ]
then
[Code].....
View 1 Replies
View Related
May 6, 2009
I am fairly new to linux still and I'm currently trying to write a shell script (which I have never done) that is supposed to run the xrestop(like top) program. What I want to do is execute the program and check the identifier column to see if a certain program is running. If it is running I want to strip the data from that row of the terminal say every 5 seconds or so and put it in a text file. Is this going to be a complicated thing?
Heres a list of the columns when you run xrestop program res-base Wins GCs Fnts Pxms Misc PxmMem Other Total PID Identifier.
View 9 Replies
View Related
Feb 11, 2010
I wrote a shell script and tried to execute it in separate terminal using command 'gnome-terminal -e <script>'. When executing first time, it went fine.From second time, I am getting error 'There is error creating child process for this terminal' repeatedly.
View 5 Replies
View Related
Jul 14, 2010
I am writing a script which will fetch data from different machines and display it on single terminal. I have created a file named SERVERNAMES containing ip address of machines I need to monitor. Then for every IP I am issuing ssh command to get date on that machine. However When I am trying it on the script it is just giving me output of first server and it is ignoring rest servers mentioned in file. ssh works fine without password for all machines mentioned in SERVERNAMES.
Code:
# cat SERVERNAMES
10.180.45.231
10.180.45.235
10.180.45.238
10.180.45.211
Script
Code:
#!/bin/bash
while read line
do
#Calculate Load on remote machine.
Date=`ssh -T -q $line date`
echo "Date on $line is:$Date"
done < SERVERNAMES
Code:
output.
Date on 10.180.8.231 is:Wed Jul 14 10:48:46 IST 2010
I am not getting the output for .
Code:
10.180.45.235
10.180.45.238
10.180.45.211
Is there anything wrong in ssh?
View 5 Replies
View Related