Skip to main content

Questions tagged [shell]

The term 'shell' refers to a general class of text-based interactive command interpreters most often associated with the Unix & Linux operating systems. For questions about shell scripting, please use a more specific tag such as 'bash', 'powershell' or 'ksh'. Without a specific tag, a portable (POSIX-compliant) solution should be assumed, though using 'posix' in addition or 'sh' instead is preferable.

19,254 questions with no upvoted or accepted answers
15 votes
1 answer
25k views

How to control bluetooth operations using adb shell?

I am working on automating bluetooth actions on android like enable/disable, pairing/unpairing devices etc. I want to know how to interact with unrooted android device for above mentioned bluetooth ...
vasanthfriend's user avatar
14 votes
2 answers
12k views

How to unlock system keychain in OS X using terminal

I have private key and certificate in system keychain and I want to access it using CodeSign so it needs to be unlocked. if I try to unlock login keychain using below script then no problem ...
Durai Amuthan.H's user avatar
13 votes
1 answer
5k views

Shell Script Invocation Error: no such file or directory in xcode 8 with swift 3

When I compile my code, Shell Script Invocation error happen in my project. I did Clean->Build->Restart my project. But it didn't help. I did again Clean DerivedData, but still the same error. How to ...
San San's user avatar
  • 674
12 votes
2 answers
2k views

How to avoid glob expansion when running a Java app in Eclipse

I am running into a peculiar behavior of the Eclipse run configuration, and it appears to be a Windows-only problem. Suppose I have a Java app that prints out the command line arguments, like the ...
sjlee's user avatar
  • 7,816
11 votes
1 answer
2k views

cronjob error in OSX: "no path for address"

I tried running a Python script using cronjob but I get the following error: cron[44405]: no path for address 0x10ff7a000 in grep cron /var/log/system.log When I ran the script without using cronjob ...
anuj tyagi's user avatar
11 votes
1 answer
6k views

iconv "incomplete character or shift sequence at end of buffer" error

I imports data from another server. Then my script converts it to .txt. .csv file which i imported: dddd-cccc bbbbbb aaaa xx List_2015_10_27.csv iconv command: iconv -f UCS-2 -t UTF-8 /thepath/*...
omega's user avatar
  • 123
11 votes
2 answers
10k views

X11 Dependency, Compile Dbus without X11, starting only Shell C++ Applications Raspbian Linux

Hello Dear SO Community :) I am trying to get DBus working on my Raspberry Pi. The example code from libdbus-c++-1 is working fine when i am in the Pi Desktop environment -> (startx) My researches ...
Dogan's user avatar
  • 181
10 votes
1 answer
2k views

Default values for environment variables in .npmrc

Does somebody know how to set default environment variables in .npmrc files ? I tried to do this: registry=${myEnvVariable:-https://myregistry.com} and this: defaultRegistry=https://myregistry.com ...
bran4's user avatar
  • 123
10 votes
1 answer
7k views

How to decode value in redis cli or shell script

I've written redis-cli bash script to process all key and value for bulk retrieval but values are not printing as expected. When I give my key in redis-cli its printing with all special characters: ...
learn java's user avatar
10 votes
1 answer
1k views

Pymongo significantly slower than mongo shell?

I'm relatively new to mongodb, and having a performance problem in pymongo. I have a collection that's 50 GBs (uncompressed) 20 GBs (compressed via WiredTiger) with about 39 million documents. ...
Brandt's user avatar
  • 565
10 votes
0 answers
2k views

Android - Workaround the ACCESS_CONTENT_PROVIDERS_EXTERNALLY permission?

I'm building an application which gives this exception because i call some internal methods Permission Denial: Do not have permission in call getContentProviderExternal() from pid=2520, uid=10047 ...
Ahmad's user avatar
  • 1,237
9 votes
0 answers
797 views

Xcode 6 archive process does not fire pre/post/build phase script for auto build increment

There are lot of questions about increment the build number in xcode, e.g. Xcode-Increment build number only during ARCHIVE? https://pontifex.azurewebsites.net/xcode-auto-increment-build-on-archive/ ...
Wagh's user avatar
  • 2,678
8 votes
1 answer
1k views

How can I open a new terminal tab in VSCode's integrated terminal using a shell script?

Question I've seen lots of ways to open a new terminal "tab/pane/view" using an external Terminal app like the macOS Terminal app or iTerm using a shell script or Apple Script but is it ...
Joshua Dyck's user avatar
  • 2,163
8 votes
0 answers
2k views

How do you set -DargLine system property inside MAVEN_OPTS environment variable?

I'm using maven and have a list of system properties -DA=alpha, -DB=beta -DS=random_stuff that I want to pass down to unit tests when maven runs, and which cannot go into the pom files. Surefire and ...
Christian's user avatar
  • 6,360
8 votes
1 answer
6k views

Install entire folder and files in it, RPM spec file

I have a spec file to build an rpm package, in my %install section I have this: %install install -m 700 foo/bar/filesToCopy/. $RPM_BUILD_ROOT/ The filesToCopy folder is a tree exactly how the ...
Jimmie's user avatar
  • 407

15 30 50 per page
1
2 3 4 5
1284