Skip to main content

Questions tagged [bash]

Bash is a free shell for Unix-like operating systems from the GNU Project.

1 vote
1 answer
6k views

Can't connect to remote machine via SSH - error: Permission denied (publickey,keyboard-interactive)

I've been trying to connect to the remote machine with the new second admin account but password was rejected. I'm very certain that I have typed the right password for the second admin account. After ...
1 vote
1 answer
643 views

how to fix the weird error “Operation not permitted”

[hadoop@worker-18 tmp]$ ./sysupdate -bash: ./sysupdate: Operation not permitted [hadoop@worker-18 tmp]$ chmod +x ./sysupdate [hadoop@worker-18 tmp]$ ./sysupdate -bash: ./sysupdate: Operation not ...
1 vote
3 answers
310 views

How can I find the RFC file that covers a particular topic?

I have downloaded, and installed the current RFC files via zypper, into /usr/share/doc/rfc/. All my RFC files are gzipped. When I want to find a particular topic, I use this command in my bashrc ...
0 votes
0 answers
18 views

Script that checks whether agents running on workstation need idea where to write output [closed]

I want to write a script that checks whether specific software is running on a computer, i manage around 200 computers and I think this is the best way to check whether the necessary security agents ...
0 votes
2 answers
12k views

ldapsearch - how to display “lastLogonTimestamp” & convert windows lastlogontimestamp to date in bash

I want to search Active Directory for inactive users that have no login for x days/months. I've got such a ldapsearch query: ldapsearch -h domain.test -p 389 -D "cn=login,ou=test,dc=domain,dc=test" -...
0 votes
1 answer
4k views

How to have a single history from all bash terminals?

I typically have multiple bash terminals open and I would like for the commands from all terminal sessions to go into a single history file, so I can see my command history chronological order across ...
3 votes
2 answers
13k views

SSH automatically logging out

I have spent hours and hours on a "simple and fun" task on an online learning platform (site): [Bash] executes the commands in a variety of different scripts. When Bash is invoked as an ...
3 votes
2 answers
5k views

Are cp/rsync asynchronous?

We're running a backup script which first copies a file to a destination and then runs tar over it. DIR2BCK='/foo/bar' TMPDIR=$(mktemp -d) rsync -a ${DIR2BCK} ${TMPDIR}/ > /dev/null 2>&1 ...
0 votes
1 answer
7k views

How do I configure a Jenkins job to target a specific server to deploy to?

I am using two CentOS servers. I am not using any code repository. In Jenkins when I click "New Item," I see no place to enter the target server. I expect a place to configure a target server for a ...
0 votes
0 answers
13 views

Task Scheduler Running Multiple Instances

I am encountering an issue with Task Scheduler on a Windows Server. I have a startup task that runs a program/script via Git Bash, which points to a .sh file that executes a Python script every minute....
0 votes
0 answers
20 views

How to configure XShell so that PgDn work properly in bash?

The key PageDown types a ~ in my bash session instead of showing next command. Why does this happen and which settings do I need to change? In vi key works as expected. I did as described in How to ...
3 votes
3 answers
4k views

Is there a way to use inputbox and enter multiple lines?

I want to have a simple way to enter messages for employees to see upon logging in. It doesn't have to be date specific, although that would be nice, but I can't find a way to use dialog to allow me ...
2 votes
1 answer
47 views

In which cases outputs of basename "$x" and echo "${x##*/}" differ?

In the following case outputs of basename "$x" and echo "${x##*/}" are not differ: $ x=xxx/yyy ; basename "$x" ; echo "${x##*/}" yyy yyy In which cases (if any)...
0 votes
1 answer
35 views

How to detect even or odd minutes in bash script

I need to detect whether the current minutes are even or odd regardless of the time zone. I tried this according to answers from several sites: #!/bin/bash n=$(date +"%M") r=`expr$n%2` if [ ...
0 votes
0 answers
30 views

How do I determine which line has too many arguments within the script itself?

When I run the script I get the following errors: ./A_High_Stakes_investigations.sh: line 11: [: too many arguments ./A_High_Stakes_investigations.sh: line 11: [: too many arguments ./...

15 30 50 per page
1
2 3 4 5
786