Software :: Write A Script To Get Off The Console After Calling /run.sh?
Mar 22, 2011
When I start the Jboss using the Jboss script run.sh, the console can not be used anymore and you have to stop it by opening another console. So I am going to write a script which calls up the run.sh and then get off the console so that this console can be used.
My script looks as follow:
Code:
#!/bin/bash
$JBOSS_HOME/bin/run.sh
exit
But it doesn't get off. I am sure it's missing some code.
View 6 Replies
ADVERTISEMENT
Aug 25, 2010
when I use LOG action in some chane of iptables rules, I get the output both in STDOUT or STDERR of the xm console and in /var/log/messages.
Is there way to make iptables to write only to log without writing to console?
View 3 Replies
View Related
Feb 21, 2010
When i try to write the password this happens
http://s890.photobucket.com/albums/a...Screenshot.png
spawn this black thing and i cant write.
any idea?
View 9 Replies
View Related
Sep 8, 2010
How can I start a program from tty1 console text mode to be executed in tty2 console text mode? Actualy I would like to start a program (chat client cli program) in tty8 automaticaly when linux PC boots.
View 6 Replies
View Related
Jan 31, 2011
solve the following problem...mtrr: type mismatch for c0000000,10000000 old: write-back new: write-combiningThis i am getting many lines in DMESG.
View 10 Replies
View Related
Nov 17, 2009
Ive installed Gaussian '03 on fedora Core 10, but I'm unable to run it. It aborts and i get the following error
Code:
Erroneous write during file extend. write -1 instead of 4096
Probably out of disk space.
Write error in NtrExt1
View 3 Replies
View Related
Feb 17, 2010
I want to write a shell script which will simultaneously collect OS user information and write in an individual text files.Can anyone tell me the syntax of the script.N.B. The user name will be mentioned in an array within the shell script.
View 8 Replies
View Related
Jun 4, 2010
I have a question about calling an asm function from C....It doesn't work unless I create an asm variable to hold the value of the function in....Why?Here's the code that doesn't work...
asmfile.s - version one Code: .section .data
mydata: .ascii "this is the message!
.equ mylen, . - mydata
[code]...
View 2 Replies
View Related
Feb 7, 2011
I am doing a web site program and what I need is to call a C program in the PHP cloud.Do u think it would be possible? The web site would get the user input from PHP UI and pass to the C program , the C program would process the function with the user input and output the a PHP page.
View 2 Replies
View Related
Feb 24, 2010
I'm using Amarok 1.4 and when I select the playlist=>burn to CD, k3b doesn't apear. I get the prompt that asks if I want to make an audio or data disk. Only the Audio CD works; the data disk option doesn't work.
View 9 Replies
View Related
Aug 13, 2010
I want to call c exe from java source code and i want to interact with the c program during it's execution, i am able to send the parameters to c program but i am not able to interact with it.
View 3 Replies
View Related
Jun 13, 2011
I have to call URL from shell script. E.g.: www.google.com. How can I call URL from the shell script.
View 6 Replies
View Related
May 13, 2011
Suddenly, i have problems when i call a script when i use some arguments/variables
Here is my code:
Code:
This is my output:
Code:
View 3 Replies
View Related
Apr 3, 2010
[URL]
Code:
/* bsearch example */
#include <stdio.h>
[code]...
View 1 Replies
View Related
Feb 17, 2011
I have found a weird behaviour on a linux application. A tty seems to get closed without calling close. The program is (very simplified) as follows:
Process 1:
configure_signals()
read_config_files()
create_threads()
wait(forever)
Thread 1:
fd=open(/dev/ttyXX)
usleep(a while)
config(fd)
I have spent quite a lot of time on this problem. It seems like the file is sometimes closed when reaching config(fd), but removing the usleep(a while) seems to remove the problem.
View 1 Replies
View Related
Jul 17, 2010
I have a bash script that changes the iptables.Now i call this bash script in my php code.When this bash script is running the part of code that contains iptables instruction is not running because we need to be in superuser mode(root)
View 14 Replies
View Related
Apr 15, 2009
I'm trying to call some Fortran 95 code in C, but I'm having problems with integers not having the same value in C as in Fortran, and changing values upon each run of the program. I think it has to do with the integer type, but I don't know how to fix it. I'm running Gentoo x86. Here are the files I've got:
foo.c:
Code:
#include <stdio.h>
extern int qux_();
main() {
[code]....
View 2 Replies
View Related
Aug 19, 2010
What is the difference in perl between:
'function();'
and
'&function();'
with and without ampersand.
View 1 Replies
View Related
Jul 30, 2011
i use the sockaddr_in like this before calling bind(), it works good.
Code:
sockaddr_in serveraddr;
serveraddr.sin_port=htons(5000);
serveraddr.sin_addr.s_addr=htonl(INADDR_ANY);
serveraddr.sin_family=AF_INET;
[Code]....
View 2 Replies
View Related
Jun 20, 2011
I tend to use commands like 'aptitude search $something' or 'dpkg -S /usr/bin/command' (some command/variable in both) or 'apt-file search $something' and all/or many of its brethen. I do run updatedb every now and then but that command is for the overall health of the system similar to tracker perhaps (but not running continously like tracker and the daemon).
What I'm looking for is, if there is a way to get the package list (installed and otherwise) updated aggressively so that whenever I use any combination of aptitude or dpkg I get better response from the system. From what little I understand, aptitude or dpkg or somewhere there would be some sort of index/database where the current state of package availability and system state would be recorded. If there is a way that this could be improved upon would be nice to know. If there is some experimental package or road which the debian folks are looking for in the future so this latency can come down.
View 5 Replies
View Related
Sep 14, 2009
Browsing thru the dmesg output, I saw this:
cfg80211: Calling CRDA for country: MX
cfg80211: Regulatory domain changed to country: MX
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
(2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[code]....
Wireless works fine, but I'm not currently in Mexico, so where is this coming from?
View 1 Replies
View Related
Feb 4, 2011
I have a simple code like below. when I run this command javac callSMSClient.java I get this erros. Any solution to this please?
View 13 Replies
View Related
Sep 8, 2010
I've just come across the stolen laptop thread where Prey was discussed to help track a stolen laptop. Since I'm going to a trip with my laptop I thought I'd try Prey.
I installed it from the link Malcom posted but cannot figure out how to configure it. I ran the menu item which asked for my root password after which nothing seemed to happen. How do I add the API and key? In the Prey web control panel it says my device is unverified.
View 9 Replies
View Related
Nov 27, 2010
I would like to call some firefox macros from bash so that I can manipulate them in some scripts. Does anyone know how to do that?Currently I'm using the imacros firefox add-in
View 1 Replies
View Related
Jul 12, 2011
I'm booting from the bash command line, and I was wondering if there is a way to make it to where when 'gdm' is called it is always called as if it had root permissions. Just so I don't always have to type 'sudo gdm' and enter a password (which would require entering a password twice, since the gdm splash screen also asks for a password.)
View 4 Replies
View Related
Oct 13, 2010
I want to call a application file in user space through a character driver running in kernel space.
View 1 Replies
View Related
May 20, 2010
I'm trying to call a system command in perl and am having an issue with it.
Here's an example of a command i'd like to call: Code: sed -i '4 c192.168.1.4 www.something.com' hosts this is the section in my perl script where I create the variable and call it: Code: $doit = `sed -i '$line c$ip $host hosts'`system($doit); The $line, $ip, and $host variables are working fine becasue I can replace that section with "prints" and they come out fine. I imagine the problem is where I am creating the $doit variable.
View 7 Replies
View Related
Jan 21, 2011
I want to call a subroutine in Fortran 90 from a c++ code. I can do it, when the fortran code have no module. But i need to call the subroutine in a fortran code that have an module. I have a simple program that shows my problem. The Fortran code is:
Code: !add2.f90
Module add2
Implicit none
Contains
[code]....
collect2: ld returned 1 exit status I Dont know where is the problem. Maybe it is in the call of the function. I found that the syntax have this form: extern void __namemodule__NMOD_namesubrutine(arg)
View 6 Replies
View Related
Aug 10, 2010
I'm running a java app when my specific user (not root) login. It's running fine.The problem is that profile.local are calling my app twice ... The first call, it's blocking Linux environment until I close java app. After that, occurs the second call, then it's free Linux for usage.I tried to change my java app for gedit, and I can see the problem too.I tried with profile.local and /home/<my user>/.profile, the result is the same.
View 2 Replies
View Related
Feb 8, 2010
I am trying to take argument from command line ic a Cprogram an give that argument as an argument to a script file which is called in that C program.Is it possible for example:
my C program is:
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
[code]....
I want to fill that blank with thevalue of argv[1] such that it will act as an argument for temp1.sh.
View 3 Replies
View Related