Software :: Script That Call A Java Program That Call A System Command?
Nov 29, 2010
In practice I have a script that call a java program that call a linux system command. The script if I run it, from a shell functions well,so it is not a java problem. The problem come out when i put this script in a crontab schedulation. The result in this case is that java do not execute the system command. I think it depends on crontab
View 4 Replies
ADVERTISEMENT
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
Feb 18, 2011
I'm working on Linux OS (Suse/redhat) and trying to format a linux partition from a c program. Is there a way to do this without using : 'system ("mkfs.ext4 /dev/sdxy")'
View 4 Replies
View Related
Dec 2, 2010
I would like to call my java program from php. How is it possible I know of zend bridge but when I read it say it will take our the existing php which I am not sure what other side effect I will have to face.
View 3 Replies
View Related
Oct 31, 2010
i am using front end as java and back end RHEL5.i am trying to calling a bash script with java. but i am facing problem.i am using following java coding to use call the bash script
import java.util.*;
import java.io.*;
public class b
[code]....
View 4 Replies
View Related
Mar 17, 2011
Can i add a c program file to initramfs such that it runs when kernel loads and before root file system getting busy...
View 3 Replies
View Related
Jul 10, 2010
I have Linpus runnig on my Aspire One. I would like to setup an icon on the menu to start a windows program using wine. I can start it manually and it works fine. I want to be able to access it directly from the desktop.
View 3 Replies
View Related
Jan 5, 2010
The following is the UDP client code I am using.
Code:
Even the server is down, sendto function is not returning -1.
Instead, it is returning the length of the message as if it is success.
View 1 Replies
View Related
Dec 2, 2010
A friend of mine is setting up infrastructure for a new call centre and they are using Ubuntu Linux on staff desktops. They need a chat program that will only work on the local network, and they want to allow staff to only access a browser, the chat client and spreadsheet software.
(a) What chat program can they use, and
(b) How can one disactivate most of the programs running on the desktop? Is uninstalling via synaptic/ Ubuntu Software Centre overkill?
View 7 Replies
View Related
Oct 13, 2010
When I an in Emacs, I want to call info pages like in terminal. E.g., info date will call the date info page, but when I in Emacs, I can only use M-x info call the complete info pages, but I only want to see the date info page. Then which command I should execute in emacs.
View 4 Replies
View Related
Sep 21, 2010
First, i have no experience with javascript. I came across an interesting site and I'm curious if I could make a private webpage to call some shell commands or just open a terminal.Yes, i know this could potentially be malicious and possibly illegal. Again it's for my own private usage.
View 1 Replies
View Related
Sep 23, 2009
i wanted to capture the stdout and stdin of a child process within a parent so that any output of child is sent to the parent and any input taken from the parent. code is simple enough and i have followed all code guidlines on the internet (some guidlines do differ also) my select call either hangs if i do not give a tmeout and with a timeout it returns 0 descriptors to be written to or read from:
below is the simple code for parent:
int main(void)
{
int outfd[2];
int infd[2];
[code].....
why select hangs without a timeout ... why can it not detect that the pipe is write ready i.e parent can write to it ... if it does not detect tha read pipe as having data...
View 5 Replies
View Related
Nov 6, 2010
I have been assigned to implement a system call that report the system statistics over all memory which are
Total Pages in Active LRU list
Total Pages in Inactive LRU List
View 1 Replies
View Related
Jun 11, 2011
I have a router with linux firmware and attached to it a USB modem with which I can do both data and voice.Any other command send through echo method works ok. I was able to send SMS, edit phonebook and many many other stuff, but not make a call.So what is different from sending the call command within Minicom 2.5 and echo it?
View 1 Replies
View Related
Dec 3, 2010
iam trying to add a system call to the kernel version 2.6.33.7.Iam running fedora 13.I have followed all the steps given in this <hekimian-williams.com/?p=20 -> tutorial,but iam getting a error in make saying undfined reference to mysyscall in syscall_table_32.
View 1 Replies
View Related
Sep 28, 2010
what is what is signal 0 in linux system call ?i can't find that in kill -l signal list . i need to know what is signal 0 . * for examples signal 1 is SIGHUP and signal 2 is SIGINIT . what is signal 0 ?
View 1 Replies
View Related
Apr 3, 2011
in below program why was new_args[0], rather than the reference the_cmd, passed to the execvp system call?
Code:
/*
A _very_ limited shell program
[code]....
View 2 Replies
View Related
Jan 6, 2010
I have recently installed 9.10. Under 7.04 thru 9.04 I have a bash script and php script that I used to send announcements about club events.When I tried it today, I get errors. Here us the command line script I use to call the php mail handling script.
Code:
#!/bin/bash
## member calling for Dave
[code]....
View 4 Replies
View Related
Apr 21, 2010
My ubuntu version is 9.10
I was working on adding a call system to my linux kernel.
I tried a lot of threads and .pdf files which explaining how to add a system call. Like :
1- This thread
2- .pdf file
and many ..
I tried working with linux-2.6.18.1 , 2.6.33.1 , 2.6.28.1 and many many.
But , all of them are returning -1 as result ..
I prefer working on 2.6.28 kernel version or above like 2.6.33.1
View 1 Replies
View Related
Dec 8, 2010
I have a process that forks, where the childs puts some data of random size and exits while the parent should get the data and does some manipulation.. here I have used a pipe for child to write the data and parent to read the data.. Child simply dumps the data, and the data is of any size even child and parent doesnt know.
I have used select in the parent to see whether there is any data coming on the reading end of the pipe.. if there is a data.. I copy into a buffer.. Im reading the data continusly when the child exits after closing the writing end of pipe. Parent gets blocked on the read part But my question is how parent know the other of pipe is closed when using the select call. In otherwords.. while using select in readfds, how would i know the other end has closed the pipe..
View 2 Replies
View Related
Oct 29, 2010
mplement the read system call in unix...i want the code for read system call...
View 6 Replies
View Related
Jun 9, 2011
I have added a new system call for kernel version Linux 2.6.25-14.fc9.i686. after kernel compilation and running the user mode program i am getting the below error
Error :: Function not implemented
Error number 29
I cannot find the syscall_table.S or entry.S file in the source code , so i didn't made the entry of the syscall in this file, how much necessary the entry of syscall presence in this list and how to get this file?
View 1 Replies
View Related
Mar 3, 2010
I am searching for any system call similar to "ls" command we use in shell. My requirement is knowing the files and directories in curent working directory and process them based on there type. Here as of now I spawn another procees with system command like system
("sh ls -l | grep ^d | awk '{print $9}'").
Instead of this I want to use any system command where I can capture this information directly into my local character buffer. My opinion is that system calls will not spawn another process as a result less time it takes, another reason is once I use the system command again I need to capture the information to a local file then again read it into local buffer. I want to avoid the file manipulation here.
View 1 Replies
View Related
Apr 14, 2011
I am trying to ptrace a process and when the system call is 'cd' change directory,
the ptrace process is able to trap it by comparing it against "__NR__open" system call. When I try to read the name of the directory from ebx register using peek_data I am getting ".message" and not the directory name.
The same thing works fine when I am tracing a file open system call.
View 1 Replies
View Related
Sep 18, 2010
I am trying to figure out how i would go about finding out where system call is made and error checking is not done. I have code below, if somebody can point me in the right direction where system call is made but error checking is not done.Quote:
#include "shell.h"
#include <stdio.h>
#include <string.h>
[code]....
View 5 Replies
View Related
Aug 30, 2010
I successfully added a new system call in CentOS Kernel but I don't know where to view it! My kernel version is -2.6.32.5
View 2 Replies
View Related
Mar 24, 2011
how to create a new system call Linux? what is the process of creating ?my project is to create a system call for displaying owner of a file..where exactly we have to write the system call code? and where are the places need to change ?
View 5 Replies
View Related
Sep 7, 2010
I'm trying to use system to call echo and pass variables to it. That was a success. The problem is the variables inside the while-loop i wrote cannot be manipulated. what I'm doing wrong here? here's the code:
Code:
#include <iostream>
#include <stdlib.h>
#include <string>
#include <sstream>
[Code]....
View 7 Replies
View Related
Sep 6, 2010
How can it be determined whether a function defined in some file of an application source-code(meant for multiple operating systems e.g., Linux, AmigaOS) is actually called when the application run on Linux?
View 9 Replies
View Related
Apr 13, 2010
As per my knowledge, one can use systemcall to call the driver functions for example using open, close... Now is there any way to call driver functions directly from application without using system call?
View 4 Replies
View Related