In a bash shell script. I tried these two versions:
java -jar abc.jar&
and
CMD="java -jar abc.jar&"
$CMD
The first verison works, and the second version complains that abc.jar cannot be found. Why?
...
This should be simple. Yet, it's giving me Hell.
Problem
I have compiled the latest kernel and when I reboot my box, it generates a kernel panic related to the filesystem.
Question
How do I get the new kernel to recognize the VMWare filesystem? There must be some setting somewhere that lets the Linux installation know that the "hard ...
Hi,
I have the below shell script in which sql file is called which has set of select and insert statements. Right now it's spooling output/error of the sql select /insert commands to the csv file. I want the output and error of the sql commands redirected to the shell script LOGFILE instead of spool file. How can i do it.
LOGPATH=${...
When you scroll up, say to see a log, the first portion of it will not be visible since the terminal only supports a limited no. of lines. So if you want to scroll up and be able to see everything, at least a few pages up, how do you do it?
...
I am assigning ipv6 address using ioctl() system call prgramtically.
I want to know if there is a way, i can find the assigned ip is tentative/duplicate ?
Thanks.
...
I've been trying to make a datatable..but the data still does not show although the datatable's head and icons all show.
I tried to get rid of the scripts, one by one, to search for the problem.
I've copied all script at datatable.net (with copy-and-paste) but the data still does not show.
Is this script not compatible with Linux Ubun...
Hi,
I am using a third party shared library and I need to check whether a function is exported by shared library programatically.
How to do this. I need this because if function does not exist I need to run some other function locally.
...
Hi,
I'm using the 'screen' multiplexer tool on the command shell and open a lot of screens. So I forget wich process ID is wich task.
I Would like to set a name for a screen but can't find an option in the manpage.
So it looks like this:
There are screens on:
5422.pts-1.aws1 (Detached)
5448.pts-1.aws1 (Detached)
5027.pts...
I need a linux filesystem filter thingy with whitch to enforce ACL policy on filesystem calls dynamically (allow/deny read/writes based on stuff computed at runtime).
So far I have stumbled onto DazukoFS and Related Work.
What I dont like about DazukoFS is that it has to be compiled for each kernel release.
Is there some user-mode libr...
I have been in search of a tool to develop multi touch applications on linux.
I happened to come across libavg a few days ago, but when I tried to run a sample program using libavg the program showed segmentation fault. I am using Ubuntu 10.04. When I looked it up on libavg's Wiki page they had given a few workarounds, but none of them w...
We have multiple load-balanced webserver machines running the same PHP webapp (LAMP) and I'd like to run slightly different code on each server (for testing purposes). I was hoping to use the $_SERVER['SERVER_ADDR'] super global to do something like this:
if ($_SERVER['SERVER_ADDR'] == 'XXX.XXX.XXX.XXX') {
echo "Do one thing";
} elsei...
In my PyGTK application, I am asking a user to find a file so that operations can be performed on it. The application asks the user for the file, and relays that filename to the necessary methods. Unfortunately, when calling the gtk.dispose() method on that dialog, it just hangs there until the method being called upon to perform the f...
I need to run two programs on the same core of a CPU. The second one always runs on another core because the first program uses 50% of the first core. How can I force Linux to run a program on a core?
...
I would like to install Centos on my PC that is currently on windows.
I use the "network installation" from the live cd.
I have saved the install CD iso on my C drive.
I start the network install, and chose "Hard Drive" as a source.
It turns out that the network installer can not find the install image on my hard drive, on /dev/hda1
I...
I can access MS Sql from a web application resides in Windows. But it is not possible with a web application reside in Linux. com.microsoft.sqlserver.jdbc.SQLServerDriver is used in this application.
Following are the configurations.
Tomcat 6
MS SQL 2005
jdk6
Driver :com.microsoft.sqlserver.jdbc.SQLServerDriver
...
I'm trying to find proper way to handle stale data on NFS client. Consider following scenario:
Two servers mount same NFS shared storage with number of files
Client application on 1 server deletes some files
Client application on 2 server tries to access deleted files and fails with: Stale NFS file handle (nothing strange, error is ex...
i have a list of images which im trying to convert to a video.
the images are the following:
t2.jpg
t3.jpg
t4.jpg
I can convert those three images into a video with:
ffmpeg -r 5 -i t%d.jpg -y -an video.avi
but if i turn the names to t20.jpg,t30.jpg and t40.jpg, it doesn't work anymore.
and changing %d to %02d doesn't make any differen...
I have a Java reader application that reads from a multicast socket on a Linux 64-bit platform (2.6.18). The socket size has been set to 2 MB. When the reader cannot read fast enough the socket "overflows", i.e. packets are dropped from the buffer.
What I would like to know is how the Linux kernel drops packets out of the socket buffe...
I have a program that is Mach-O executable i386 and I was hoping to run it on a linux server. Is this possible?? If so, how? I can't see, to figure this out.
Thanks!
...
I've been working on a local clone of a remote git repository, committing my changes to my local master branch. Now, I want to push my commits to the remote repository. However, I want to keep my local commits separate from the remote master branch, so that I don't break anything. How can I push my local commits to a new remote branch?
...