All Questions
1,006
questions
0
votes
0
answers
64
views
Permission denied: users/usr/.local/bin
I'm trying to install a program to download pdf files. This is the github link https://github.com/Lofter1/anyflip-downloader. I followed the istructions but I basically don't know exaclty what I'm ...
1
vote
1
answer
60
views
Why I can't change the prompt in VSCode's terminal?
I am trying to change the prompt in my VSCode's terminal.
My OS is MacOS Monterey 12.6.
I use the zsh and I change the PS1 in .zprofile,such like this.
Then I use echo to test.The others can work ...
0
votes
0
answers
57
views
Connect to PEAP wifi network on mac with a shell script
I am making a shell script for my mac and part of it requires connecting to my school's wifi network.
I have tried both of the following commands and while the settings wifi tab says that the computer ...
0
votes
0
answers
80
views
How on MacOS from bash script (or installer) inform system restart is requried (which can be postoned by a user)
I have some post installation script which on some version of MacOS system does some system tweaks. This changes will take effect when system is restarted.
I do not want to restart machine immediately....
0
votes
1
answer
26
views
Use atrun via launchD on MacOS
I'm trying to schedule a job using the at-command in a script invoked by a launchDeamon.
This doesn't seem to work.
The launchD for atrun is running.
Atrun, cron and terminal all have full disk access....
0
votes
0
answers
122
views
Is there a best way to export from the Directory Utility?
I want to export all of the data from a page in the MacOS directory utility. In the edit section, it say's I'm looking at Users in node /Active Directory/XXXXX/All Domains. It lists all the users I ...
0
votes
1
answer
228
views
bash scripts not loading any of ~/.bash*
Context:
M1 MacBook
macOS Ventura 13.5.2
zsh as default shell
GNU coreutils installed by homebrew
/opt/homebrew/opt/coreutils/libexec/gnubin added to path in ~/.bashrc, ~/.bash_profile, and ~/....
1
vote
1
answer
316
views
How to execute three terminal scripts in three new tabs from Applescript?
I have the following apple script top execute three commands in different terminals. Is it possible to (1) combine this script to make it more efficient and (2) open in different terminal tabs instead ...
1
vote
2
answers
446
views
rsync - Operation not permitted when script is launched by cron
I've got a script that basically launches the following command
rsync -avh --progress --no-relative "$SOURCE_PATH/" "$DESTINATION_PATH"
and vice-versa (destination to source). ...
1
vote
1
answer
1k
views
How do I create a shell script that will exit the ssh session after executing the remote commands
I'm trying to write a bash script to compile and deploy some code to a remote server. So far I have been struggling to figure out how to get the script to exit the ssh session. I thought I could just ...
0
votes
0
answers
200
views
Deleting folders using rm -rf does not free up space
I am trying to re-install macOS on my iMac.
My iMac worked perfectly, before I upgraded macOS Ventura (It was a minor upgrade, I was already on Ventura). After I did a regular update, I logged into my ...
-1
votes
1
answer
443
views
Set Variable to ls command output
I'd like to create a variable from the output of a bash command. How does one create a variable out of the output of the command "ls /Users".
Variable creation does not work in this case:
...
1
vote
1
answer
179
views
Why does socat with rich terminal get killed with signal 9 on OSX?
I used the following command from this question to test out using socat to build a terminal with rich signals:
socat file:'/dev/tty',raw,echo=0 exec:'bash -li',pty,stderr,setsid,sigint,sane
On Linux, ...
0
votes
1
answer
471
views
macOS: pkill a specific process without sudo?
Because of some recent bluetooth issues, I need to be able to run sudo pkill bluetoothd quite frequently, so I decided to create a shell script Shortcut to have on my menu bar for quick access. I ...
0
votes
1
answer
697
views
Terminal search with output that excludes directories (as opposed to files within a directory)
I'm trying to do a recursive search in Terminal to find all files that are not folders; this is to confirm that a large directory structure has no content in it. Is there a way to do this?
Starting ...