I am new to Erlang and would like to to know how to install third party modules for use in my web application.
Where do you place this files and what sort of commands do you execute?
i want to take data from bluetooth into matlab after every 10 to 15 seconds.. have figured out a way to transfer data to matlab via bluetooth. the problem i am facing is that i want matlab to execute a set of commands after a time interval to take input from bluetooth. if u cld plz help in this matter??
Hi.
In the execution of the scheduled job itself i want to stop it from being executed again and again, how can i do so without having the string that i received when i created the job in the first place ?
public class UfkJob implements IScheduledJob {
public void execute(ISchedulingService service) {
if (...) {
/* here i want to remove the current running job */
}
}
I executed the job outside by using the commands:
ISchedulingService service = (ISchedulingService) getScope().getContext().getBean(ISchedulingService.BEAN_NAME);
service.addScheduledJobAfterDelay(5000,new UfkJob(),200);
I would like to join the result of ls -1 into one line and delimit it with whatever i want.
Are there any standard linux commands i can use to achieve this?
I recently installed Platform builder 7 by Microsoft. It is a plugin for VS2008.
The plugin adds the following menu:
I want to remove several items from this menu and I would also like to add some button from it to a toolbar. The problem is that when I do customize I only get "advanced command placeholder" shortcut for the whole bunch. Like this:
How do I access the internals of these commands menu?
Hi Friends,
Could anybody help me by giving some good websites that are describing about T-SQL commands. I am a new guy in this field. thanks in advance..
Like the title says. I'm sending a simple cUrl cmd from Win7 to CouchDB on my Linux box, and it doesn't work. But if I run the same command in Linux, it works. I'm sending this:
curl -X POST 192.168.2.5:5984/test/testdoc -d '{"owner":{"fname":"test","lname":"ing"}}'
From windows, it keeps giving me a "error: bad request, reason:invalid UTF-8 JSON".
I can run GET commands from windows just fine, I just can't seem to POST to CouchDB.
Hi!
I have a file
line a - this is line a
line b - this is line b
line c - this is line c
line d - this is line d
line e - this is line e
The question is: How can I output the lines starting from "line b" till "line d" using bash commands?
I mean, to obtain:
"line b - this is line b
line c - this is line c
line d - this is line d"
Hi,
I have windows xp in my work and i programming on zend framework.
I need to install ubuntu for execute doctrine orm commands from linux console, I faile to do it on windows.
I thinking about 2 option of UBUNTU installation:
1.install ubuntu 10.04 on Virtual Box (Sun Virtual Machine).
2.create new primary partition and install ubuntu 10.04 directly.
Which options do you suggest to do?
Thanks
Hello,
I want to build a web based admin tools that allow the system admin to run pre-configured commands and scripts through a web page (simple and limited webmin), what is the best approach?
I already started with Ubuntu installing LAMP and give the user www-data root's privileges !!!
as I learned (please check the link) this is a really bad move !!!, so how to build such web-based system without the security risk?
cheers
I'm trying to customize the Standard Toolbar in VS2010 to add Open Project (on the File menu), but it's not available..
Steps:
Tools Customize...
On the Commands Tab, select Toolbar, then Standard from the list
Click Add Command... button
Select File in the list
and no Open Project ???
Can't seem to find it anywhere else either. Any idea, or how else to add it?
Thanks!
Got a bluescreen in windows while cloning a mercurial repository.
After reboot, I now get this message for almost all hg commands:
c:\srchg commit
waiting for lock on repository c:\src\McVrsServer held by '\x00\x00\x00\x00\x00\
x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
interrupted!
Google is no help.
Any tips?
If I have the below sudoers entry
usera ALL=(userb) NOPASSWD: /home/userc/bin/executable-file
usera ALL=(userb) NOPASSWD: /home/userc/bin/link-to-another-executable-file
When I log-on as usera and try running the below commands, it works
sudo -u userb /home/userc/bin/executable-file
but NOT the one below.
sudo -u userb /home/userc/bin/link-to-another-executable-file
Sorry, user usera is not allowed to execute '/home/userc/bin/link-to-another-executable-file' as userb on hostname.
Any ideas?
I'm about to embark on a new project in Silverlight 4, and definitely want to take advantage of the MVVM pattern, now I've finally grasped the basics.
For implementing commands in Silverlight 4 it seems there are rather a lot of options ranging from the new built-in Command/ICommand option on the Button, over the InvokeCommand defined in the Microsoft.Expressions.Interactivity namespace and on to the range of assisting MVVM frameworks (Prism, MVVMlight etc).
Does anyone here have gotcha's, experience and wisdom to share on this subject?
The usual way to call a shell command from java is something like that:
Process process = Runtime.getRuntime().exec(command);
and works usually fine.
But now I've exported my project to an executable jar file and callig shell commands doesn't work any more. Are there any explanations, solutions or workarounds for this problem?
phineas
--
edit:
even keyboard interrupts (ctrl+c; ctrl+d) aren't recognized.
terminal input won't work after killing java
Please help about controlling PDFs through JavaScript loaded inside Safari.
Safari uses a PDF plugin of its own something exclusive to Safari and not present in other webkit based browsers like Chrome.
Any of the or js commands that would work with the Adobe's plugin don't seem to work.
Any help / pointers would be appreciated.
Can someone explain this XAML statement, particularly what is the Resolve?
<MenuItem Header="_Load File" Command="{Resolve {Type Commands:LoadFile}}" />
I've been using MonoDevelop and Make to execute some build taks on a C project under linux, but I decided to abandon Make and switch to NAnt since I am more proficient in writing C# programs than Make/shell scripts, so I decided to write a custom NAnt task in C# to replace my Makefile. So, how can I invoke GCC or other shell commands from C#?
is the code given is executable in Windows system? as it seems to be Linux commands
echo 'create database foo2' | mysql -uroot
mysqldump --skip-triggers -uroot foo | mysql -uroot foo2
I'm looking for a way to find what I know will be a unique file, and then change into the directory containing that file. Something along the lines of:
find . -name 'Subscription.java' | xargs cd
Or:
find . -name 'Subscription.java' -exec cd {} \;
I know this won't work because it's both trying to cd supplying the entire absolute path, which contains the file, and also because xargs can't do any built in shell commands...but you get the point of what I want to accomplish.
I am using c#.NET 2.0 to execute DOS commands to ftp a file. All works except for 1 thing, in the cmd file I call, it runs a PUT statement. Right now the put statement has a hardcoded local file path. I need to specify a dynamic path. I've tried
put %~dp0\myfile.DTL myfile.dtl
but it says it can't find the file.
Problem: 2 projects shared trunk and were updating some of the same files. Now one project needs to be released, so a new branch was created from a checkpoint before the projects started.
I have a list of just my changelist numbers from the mainline. Using that I can generate a list changed files and diff output using a script with a series of 'p4 describe #' commands.
Can I reformat that output and apply it to the new branch somehow?
I'm trying to import several modules that come bundled with 8.4.1 postgres, and all the commands to do so (such as contrib.import etc) do not work or cannot be found. Please help me.
So I have this existing command that accepts a single argument, but I need something that accepts the argument over stdin instead.
A shell script wrapper like the following works, but as I will be allowing untrusted users to pass arbitrary strings on stdin, I'm wondering if there's potential for someone to execute arbitary commands on the shell.
#!/bin/sh
$CMD "`cat`"
Obviously if $CMD has a vulnerability in the way it processes the argument there's nothing I can do, so I'm concerned stuff like this:
Somehow allow the user to escape the double quotes and pass input into argument #2 of $CMD
Somehow cause another arbitary command to run