« first day (734 days earlier)      last day (996 days later) » 

7:25 AM
1
Q: shutdown, but still allow new logins

JeffI have a linux vm on aws in ec2 that starts up, performs a task, then shuts itself down. I am issuing the shutdown command like this: shutdown -h 5 I have a 5 minute delay to give myself time to ssh into the server and cancel the shutdown if I want to do something with the server. The problem I...

 
 
8 hours later…
3:05 PM
2
Q: How to align the output generated in a shell "for" loop by columns

PGELI'm trying to align output from a bash for loop. Currently, I'm getting output from my loop that looks like so: Directory: /some/long/directory/path Remote: some-remote Directory: /some/dir/path Remote: other-remote Which I'm trying to align like so: Directory: /some/long/directory/path ...

 
 
4 hours later…
7:22 PM
1
Q: How to split line in for loop and use as arguments to command line call

kaidentityI have a seemingly very simple problem but I am unable to come up with a satisfying solution. I have a simple input file containing IPs and ports, like 10.155.78.0 445 172.17.11.0 3389 Now I want to execute nc -vvv <ip> <port> for each line in a for loop. All I can come up with is splitting the ...

 
 
3 hours later…
9:55 PM
1
Q: Is it possible to use the escape codes used in shell prompts elsewhere, such as with echo?

LukasExample: When I run echo -e "\[\033[;33m\][\t \u (\#th) | \w]$\[\033[0m\]" the printed response is \[\][ \u (\#th) | \w]$\[\] where everything after the first \[ and before the last \] is an orangey-brown. However when I set the command prompt to \[\033[;33m\][\t \u (\#th) | \w]$\[\033[0m\...

 

« first day (734 days earlier)      last day (996 days later) »