Search Results

Search: Posts Made By: soichiro
7,903
Posted By soichiro
In the end, thanks to you guys, I did the...
In the end, thanks to you guys, I did the following:

tot_files_found=0
yad --image="$MD5SUM_ICONS/binary.png" --progress --pulsate --progress-text="" --center --title="Getting things ready..."...
7,903
Posted By soichiro
Hello, What I am trying to achieve is the...
Hello,
What I am trying to achieve is the following:
As long as find . process is up and running, I want to show a message to the user and that is why I use
| yad...
7,903
Posted By soichiro
[solved]
Thank you so much for the info provided... After your explanation I was able to make it work :b:


tot_files_found="$(echo $RANDOM)_find.$CURRENT_USER.$(echo $RANDOM)$(echo $RANDOM)"
while true;...
7,903
Posted By soichiro
[bash] why my variable is not updated?
Does anyone know why the below script is not working? Why is not the variable tot_files updated?

location=$1
cd "$location"

tot_files=0

(
echo ""
# recursively gets the total...
1,571
Posted By soichiro
[ufw] force all traffic through VPN
I am trying to force all my tun0's traffic through VPN but some some reason, the ufw is not working the way I want to.

Below are the commands that I have executed.. I am able to connect to my SSH...
2,015
Posted By soichiro
Thank you! I like your way much better. It is...
Thank you! I like your way much better. It is even easier to understand. :b:
3,061
Posted By soichiro
Thank you so much! :b:
Thank you so much! :b:
2,015
Posted By soichiro
[grep] Is there a better way to do this?
Is there a way to retrieve the tun0's inet in a more reliable way? Currently, I am achieving this with the below code.
sudo ifconfig | grep -E 'tun0 | inet ' | awk '{ print $2; }' | awk '{...
3,061
Posted By soichiro
In the end, I was able to solve this issue by...
In the end, I was able to solve this issue by showing an image, if one or more not allowed chars, were inserted.


not_allowed_chars.png - Google Drive...
3,061
Posted By soichiro
[zenity] string is not displayed
I am trying to display a string in zenity:

chars="\, /, <, >, ?, |, &, $"
echo $chars
\, /, <, >, ?, |, &, $

Now when I execute:
zenity --forms --text="Chars not allowed: $chars"...
2,830
Posted By soichiro
[md5sum] script
I am getting No such file or directory if my variable contains white spaces... Is there a way to fix this?


This works
x="1.md5"
md5sum -c "$x"
This, does not

x="23\ 5\ 6\ 7\ 8\ 9\...
1,806
Posted By soichiro
[zenity] precise progress bar
Hello everyone,

Is it possible to have a precise progress bar in zenity during the execution of the following:
find -type f \( -not -name "$file_name".md5 \) -exec md5sum '{}' \; >...
12,487
Posted By soichiro
Hello apmcd47, I was able to solve my issue...
Hello apmcd47,
I was able to solve my issue thanks to your suggestion

1- I removed
location=${tmp_loc// /\\ }2- I modified the
cd $location with


cd "$location"I guess last night I was...
12,487
Posted By soichiro
Yes, you are right. The below code is used...
Yes, you are right.

The below code is used to check if the string is empty

[[ -z "$tmp_loc" && "${tmp_loc+x}" ]]I will do the suggested modification and I will let you know later today.

---...
12,487
Posted By soichiro
It seems to be working... I will try to do some...
It seems to be working... I will try to do some tests and I will report back to you.
12,487
Posted By soichiro
[bash] cd: too many arguments
Hello everyone,

Could someone please explain to me why I get cd: too many arguments when I select a dir that has one or more spaces in the name?

This is the code

#!/bin/bash
...
2,033
Posted By soichiro
Unless I am wrong... In Debian a regular user...
Unless I am wrong... In Debian a regular user does not have access to ifconfig.

--- Post updated 12-14-18 at 12:19 AM ---

It took me all day but in the end, I was finally able to prevent the...
2,033
Posted By soichiro
[bash] script is filling up my /var/log/auth.log
I am trying to create a script that checks if my VPN connection is up and running...
Everything seems to work as except but for some reason, the script fills up my /var/log/auth.log with the below...
1,015
Posted By soichiro
Thank you so much for your help guys!
Thank you so much for your help guys!
1,015
Posted By soichiro
[bash] remove some entries from output
Hello everyone,

I have the following script

sudo lshw -class disk | egrep -E "product|logical name|size:" | awk ' {print;} NR % 3 == 0 { print ""; }'

This is the current output on my machine...
665
Posted By soichiro
I just wanted to create a bash script to...
I just wanted to create a bash script to automatically download a brand new IP filter every 33 days and only related to United States. That's all.

By the way, what would you use to download a...
794
Posted By soichiro
I did has you suggested and I got the following: ...
I did has you suggested and I got the following:

[xfce4-terminal]
[--geometry=102x9]
[--tab]
[--title]
[tab name 1]
[-e]
[bash -c './script1.sh ; bash']
[--tab]
[--title]
[tab name 2]...
794
Posted By soichiro
[bash] Extra tab opens
Hello everyone,

This code is working right using mate-terminal but with xfce4-terminal for some reason, it open up an extra tab...

Could someone please help me out to understand why this is...
665
Posted By soichiro
The website is...
The website is ip2location.com/blockvisitorsbycountry.aspx

I would like a bash script that downloads the IP filter in the following format:

1- IPv4
2- United States
3- PeerGuardian2 Format
...
665
Posted By soichiro
[Bash] is possible to do this?
Hello everyone,

Is it possible to use a bash script that downloads an IP filter with the following options (see attachment)

I have tried multiple time, but I am not very familiar with bash...
Showing results 1 to 25 of 25

 
All times are GMT -4. The time now is 05:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy