The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
97 views

Bash script that calls a program with some asterisks in arguments

I’ve spent last hour or so trying to write a pretty simple bash script and I never felt so dumb. So I have a list of strings (which are package selector specifications for a package manager, if that ...
1
vote
1answer
307 views

Escape Skype Messages to Use Special Character Combinations

In a technical environment it's more than common to copy/paste configuration files, URLs, code samples and such in order to inform the other chat participant about something. In that case all kinds of ...
0
votes
0answers
4 views

Encode degree sign in vnc url scheme

I would like to open ScreenSharing.app from terminal like this : open vnc://$user:$pwd@$host This works fine, but I've a password with a "°" sign in there, and it's not working with this one. How ...
0
votes
1answer
242 views

How to escape “!” and “&” in docker's environment varibles

I have a docker container I want to run and hand it over some passwords. One with an exclamation mark ! and the other one with an ampersand &. So I want to run this: docker run -i -t --rm \ -e ...
1
vote
2answers
389 views

How to use a space in date format section of annotate-output?

I try to use annotate-output (part of devscripts package), to prefix outputs of a script with date and some extra info. First parameter can be a format string passed to date. I want to include a space ...
1
vote
1answer
197 views

How to transmit locally entered modifier keys or shortcuts to the remote desktop via VNC? Mask or escape them somehow?

I am connected to a xmonad desktop but am only able to use the first workspace. How can I change to other workspaces? Furthermore: If the last terminal is closed, I can’t do anything. How can I open ...
0
votes
0answers
96 views

Using net user with a system account with a backslash

Entering: net user "IIS APPPOOL\DefaultAppPool" Results in: The syntax of this command is: NET USER [username [password | *] [options]] [/DOMAIN] username {password | *} /ADD [options] ...
1
vote
1answer
701 views

grep fails in upstart script

I have an upstart configuration for a service which needs to check the existance of a process on it's startup. This sounds fairly easy but I'm already trying for 3 hours to get this thing solved and ...
1
vote
1answer
1k views

Upload a file with a comma in its name with curl

How can I upload a file named yes, this filename has a comma.txt with the cli curl? You would normally do this to upload a file with curl: curl --progress-bar -F "fileUpload=@filename.txt" However ...
1
vote
1answer
629 views

why is it true that three backslashes are needed on windows for sed replace

Refering to this question: Why is an extra \needed in cmd.exe to work with sed (MinGW msys-1.0) when \ is not a special character according to cmd /? (see last paragraph or here)? The following ...
2
votes
1answer
297 views

Echo string in tcsh with special characters escaped

Is it possible to echo out a string in tcsh such that it is fully escaped, as tcsh would understand? In the same way as printf %q works in bash: % # Create a variable containing a tab character % ...
1
vote
1answer
51 views

Escaping a directory in a $PATH-like list

I'm developing a wrapper for LibGit2, the Git library. And I come out with a problem: Many GIT functions accept path lists, that is, a string composed of a series of paths separated by a token, that ...
3
votes
2answers
422 views

ash scripting: space-containing variable refuses to be grepped

I am trying to run the script listed at http://talk.maemo.org/showthread.php?t=70866&page=2 on its intended hardware, a Nokia Linux phone running BusyBox ash. The script receives the name of WiFi ...
1
vote
2answers
208 views

bash “pass through” script for android build, space issue

I have an android build i need to customize, the question is ehre and not in stackoverflow because my issue wis with bash. I wrote a script: #!/bin/bash -xv params=$@ if [ "$#" -ge "2" ]; then ...
3
votes
2answers
2k views

Transferring environment variable through SSH / quoting in bash/sh/csh/tcsh

I want to transfer an environment variable over SSH. The "correct" way is using SendEnv/~/.ssh/environment, but that requires the server to support AcceptEnv or PermitUserEnvironment, which it does ...
0
votes
1answer
642 views

cmd.exe quoted string expansion?

Bash has the feature of quoted string expansion, which will allow you to send special characters like so #!/bin/sh rtmpdump \ -r rtmp://freeview.fms.visionip.tv/live \ -y ...
0
votes
1answer
306 views

How to quote a command between backticks when shell scripting

The command executed in the following script works: #!/bin/bash -xv REM_DIR="/home/jan/rem-dir" SSHOPTS="-C -c arcfour256 -o "\""ServerAliveInterval 15"\" SSHUSER="jan@example.com" CMD="ssh $SSHOPTS ...
3
votes
4answers
3k views

where is the '^]' character on an azerty keyboard?

I am currently using telnet and i need to do an escape character (SMTP), where is this character on an azerty keyboard? (linux ubuntu).
0
votes
2answers
605 views

How to escape & sign in excel footer?

I need to have an excel footer that contains the string "&T". My problem is that when I attempt to do this excel automatically changes it to be "&[Time]". Is there anyway to escape the & ...
1
vote
2answers
211 views

Run Program Escape Sequence Putty

I currently have a 75 user license for FacetWin and am looking to upgrade to an open source solution like putty. However I do need one key feature which is used a lot. In FacetWin, there is an option ...
0
votes
1answer
274 views

cat file that contains escaped characters to netcat

I'm trying to test a webserver with some HTTP request written in a file. GET / HTTP/1.1\r\n\r\n Right now I'm feeding that file to netcat like this: cat files | nc localhost 80 However, the \r\n ...
1
vote
3answers
397 views

OS X: How to get the current network location inside a bash function?

I need to use the current network location inside a bash script conditional. I've tried using the scselect command, which outputs an asterisk next to the current location: ~/ scselect Defined sets ...