What will >_ command do in bash

I saw >_ in bash shell icon in mac and was wondering what it will do. I tried performing the command but I was not able to figure out what happened. My command prompt silently came again. It should be doing something, that's why it is in the icon f...
more »

2017-08-15 10:08 (1) Answers

How to run a command from a variable in VBA

I have this simple VBA code below, and I don't know why is not working. Sub Run() test = "MsgBox" & """" & "Job Done!" & """" Application.Run test End Sub What I want to do is to put the VBA Command into a variable as text...
more »

2017-04-04 21:04 (2) Answers

Terminal command won't print

I have a code which calls a specific command within the Mac Terminal, I then use a buffered reader to read and print the result from the terminal. I have been doing this with a couple of commands, only problem is I am now in need of using the command...
more »

2017-03-11 18:03 (0) Answers

Bash sort -nu results in unexpected behaviour

A colleague of mine noticed some odd behaviour with the sort command today, and I was wondering if anyone knows if the output of this command is intentional or not? Given the file: ABC_22 ABC_43 ABC_1 ABC_1 ABC_43 ABC_10 ABC_123 We are looking to...
more »

2017-03-01 09:03 (2) Answers

qt command line application compilation

trying to compile this simple qt application #include <QApplication> #include <QPushButton> int main(int argc, char *argv[]) { QApplication app(argc, argv); QPushButton hello("Hello world!"); hello.resize(100, 30); hell...
more »

2017-02-07 14:02 (1) Answers

Command to empty many files recursively

I would like to clear the content of many log files of a given directory recursively, without deleting every file. Is that possible with a simple command? I know that I can do > logs/logfile.log one by one, but there are lots of logs in that fol...
more »

2017-01-31 14:01 (2) Answers

how to exec() in a for loop? in C

I'm trying to implement the cat command invoking the exec() function and saving the output of it in a tmp file. My issue is that I know that after invoking exec() anything afterwards will be ignore, therefore there's no point of looping the exec(). ...
more »

2016-12-23 12:12 (1) Answers

Creating process with arguments in Swift?

Problem with doing process in Swift 3, It's not working, I click and nothing is happening. let open = Process() open.launchPath = "/usr/bin/openssl" open.arguments = ["openssl enc -aes-256-cbc -d -in \"" + existing.stringValue + "\"...
more »

2016-11-04 13:11 (0) Answers

Send Email from Laravel Commands and Scheduler

I'm trying to make a scheduled task using commands but does not work MailFacade to send emails. The Command Class: <?php namespace App\Console\Commands; use Illuminate\Console\Command; use Illuminate\Support\Facades\Mail; class ToDoUserAlert...
more »

2016-10-05 22:10 (0) Answers