shell-script tag

8 questions


1 answers
63 views
0
Meaning of code with exitcode=0 in the .sh file

I was studying Docker.I saw a code line that said exitcode=0 in the sh file.I'm not sure what exitcode=0 means. I would like to ask for url with a brief explanation or explanation of exit code. Thank ...

1 years ago

1 answers
87 views
0
To find with variable value when using find in Linux shell script.

Writing shell scripts on Linux.First, the variable name contains the date.date=`/bin/date +%Y%m%d -d '1 day ago'`The date variable contains yesterday's date. Same as 20161026.Then find directories wit...

1 years ago

2 answers
86 views
0
How to set relative paths by file, not by path criteria for entering commands?

The title is weird because I don't know it well.The result depends on where the command written in the shell script runs the script.For example:#!/bin/shpwdScripts like this home p parent ch Child te...


1 answers
96 views
0
Linux Shell Script

Linux is trying to create a sh file and use it like a command.The function is to tar all the folders in the directory where I am currently located, including sub-files and folders.You need to compress...

1 years ago

1 answers
82 views
0
I'd like to ask you how to print the shell script on Django.

Hello, I have a question about Django.Currently, you have run a shell script on the server with subprocess.run on views.py.Is there a way to print out the progress log of this shell script in real tim...


1 answers
107 views
0
Shell Script if Statement Conditions

It is the condition of the if statement to check leap year.if[ ((${year}%4 -eq 0 ) && (${year}%100 -ne 0 )) || (${year}%400 -eq 0) ]then ... fiThe conditions I put in are, Once every four year...

1 years ago

1 answers
104 views
0
Developing process check and execution program in ubuntulinux 18.04 environment. (python3)

About processes running in ubuntulinux 18.04 environmentWe are developing a program that checks the execution and termination status of the process and allows the process to be re-executed if it is te...


1 answers
93 views
0
Don't you consider the procedure when you run shell scripts?

Chapter 7 in the book This Is Linux (by Woo Jae-nam) Learning Shell Script Programming Unit I had doubts.*set.sh* 1. #!/bin/sh 2. echo today's date is $(date). 3. set $(date) 4. echo today's day is $4...

1 years ago

© 2024 OneMinuteCode. All rights reserved.