Hello all,
In the php system command we use the following
system("ffmpeg -i test.avi -ab 56 -ar 44100 -b 200 -r 15 -s 320x240 -f flv output_file.flv 2>&1 &").
Please explain the usage of the above mentioned system command. What does '2>&1 &' stand for ? I want to dump the process details to a file how do I do that ?
Thank you very ...
What is the best way to run a custom sql statement using IN from a c# linq to sql datacontext? I have tried:
db.ExecuteCommand(
"UPDATE tblCard SET used = 1 WHERE id IN ({0}) AND customer_id = {1}",
Request.Form["ids"], customer_id
);
Which is fine for 1 item passed through the form, but if i get posted through for example "2,1"...
Hello,
I'm trying to build a context sensitive based command list. I set the command.ITEM option for all my command buttons. But I couldn't find a way how to provide the following functionality:
I have a list of values say A, B,C
For A, my command menu should contain 2,4
When I move the selection (cursor) to B, my commands menu should h...
Hello,
In my WPF application I have 2 Windows (both Windows have their own ViewModel):
Application's Main Window that displays list with bunch of words (bound to MainViewModel)
Dialog Window that allows users add new items to the list (bound to AddWordViewModel)
MainViewModel has Articles property of List(this collection is populat...
Hi
I want to create a Log file in SSIS...
I know hoe to create through management studio.but i wanted to run my SSIS package through Command Prompt...
can you help me to get the DOS commands for that?
...
I'm creating a Powershell script to deploy some code and part of the process is to call a command-line compression tool called RAR.EXE to back-up some folders.
I'm attempting to dynamically build out the parameters and then have powershell call the command with the variables but I'm running into trouble. It isn't working...
Run the fo...
i have contents in a file
like
asdfb ... 1
adfsdf ... 2
sdfdf .. 3
I want to write a unix command that should be able to add 1 + 2 + 3 and give the result as 6
From what I am aware grep and awk would be handy, any pointers would help.
...
Hi
Suppose I have a view implemented as a DataTempate inside a resource Dictionary.
And I have a corresponding ViewModel.
Binding Commands are easy. But what if my View contains a control such as a ListBox, and I need to Publish an application wide event (Using Prism's Event Aggreagtor) based on the Item being Changed on the List.
if L...
I have a DataTemplate containing an Image. To the Image I added a ContextMenu with a MenuItem. To the MenuItem I associated a command. I then handle the command in the view using the DataTemplate.
In the CanExecute handler I have e.CanExecute = true. But the Executed handler is never executed. If I remove the Command assignment the Men...
We are using C# and Linq2SQL to get data from a database for some reports. In some cases this takes a while. More than 30 seconds, which seems to be the default CommandTimeout.
So, I guess I have to up the CommandTimeout. But question is, how much? Is it bad to just set it very high? Wouldn't it be bad if a customer was trying to do so...
Is there any way to get Apache to run a command/program every time a web page is requested? I know I could scan the logs for new entries every minute or so, but can I get Apache to directly call the command? There might be an option like this in one of the configuration files, but if there is I don't know what it is. My server is running...
I have a context menu. It's bound to some collection and it has a defined ItemTemplate like this:
<ContextMenu
ItemsSource={Binding ...}
ItemTemplate={StaticResource itemTemplate}
/>
itemTemplate is a simple DataTemplate with a TextBlock:
<DataTemplate x:Key="itemTemplate">
<TextBlock Text={Binding ...} />
</DataTempl...
Hello!
I have this set of piped commands:
grep -n '*' file.txt | head -n1 | awk -F\: '{print $1-1;}'
It tells me the previous line to that where it first find asterisks.
Now I want to get the previous lines piping that to:
head -n<that previous line number>
Head requires a number following immediately the -n argument, without space...
I'm currently struggling with the following Eclipse RCP commands:
org.eclipse.ui.edit.cut
org.eclipse.ui.edit.copy
org.eclipse.ui.edit.paste
I'm using them as command contributions in the toolbar, but the UIElements (toolbar items) are not updated when the 'handled' state of those commands changes.
For testing I used a polling mecha...
A quite simple and straightforward example.
I have a window. It has CommandBindings set to catch a RoutedUICommand execution.
<Window
...
>
<Window.CommandBinding>
<CommandBinding
Command="{x:Static local:Commands.Command1}"
Executed="OnCommand1Executed"
CanExecute="OnCanCommand1Exec...
it's really annoying to type this whenever I don't want to see a program's output. I'd love to know if there is a shorter way to write:
$ program >/dev/null 2>&1
Generic shell is the best, but other shells would be interesting to know about too, especially bash or dash.
...
I've got a daemon.py with a callback. How should I make the handler function execute a OS command?
...
When creating an WPF application with the MVVM pattern, it seems I have to gather the necessary tools myself to even begin the most rudimentary event handling, e.g.
AttachedBehaviors I get from here
DelegateCommands I get from here
Now I'm looking for some way to handle the ItemSelected event in a ComboBox and am getting suggestions...
Hi All,
I want to create a "Command Console" similar to the Windows Command Prompt, with command history, etc which is in a JPanel so that it can be added to a JFrame.
What I want to do is present the user with the prompt to allow them to execute commands.
What I have in mind is similar to the BeanShell Console, however I haven't be a...
For example, I might want to:
tail -f logfile | grep org.springframework | <command to remove first N characters>
I was thinking that 'tr' might have the ability to do this but I'm not sure.
Thanks in advance stackoverflow geniuses!
--
LES
...