Search Results

Search: Posts Made By: Arnaudh78
484
Posted By Arnaudh78
Sorry but all these commands doesn't work :( ...
Sorry but all these commands doesn't work :(

---------- Post updated at 10:20 AM ---------- Previous update was at 10:17 AM ----------

Complete output, if it can help:


Reading package...
484
Posted By Arnaudh78
How auto type"OK" to purple window?
Hello :)

I need help to automate an auto type "OK" to the below purple window:

command:
apt-get remove --purge resolvconf -y

Ouput: ...
490
Posted By Arnaudh78
Maybe try this: ssh-keygen -b 2048 -t rsa -f...
Maybe try this:

ssh-keygen -b 2048 -t rsa -f /tmp/sshkey -q -N ""
473
Posted By Arnaudh78
Bash diff date doesn't work
Hi everyone,

I've an issue trying to soustracte two dates, e.g:


d1=$(date -d "Nov 18, 2017" +%s)
d2=$(date +%s) # Today we are 2017-11-16

echo "$(( (d1 - d2) / 86400 ))"


Output:
1
...
1,794
Posted By Arnaudh78
Hi cherryTango, Maybe you could try to...
Hi cherryTango,

Maybe you could try to looking for "inotifywait"

Bash script to check if a file is modified or not - Unix & Linux Stack Exchange...
5,006
Posted By Arnaudh78
Logrotate exclude log file
Hi all !

I've an issue to exclude a log file from logrotate, I tried this below:

/var/log/apache2/[!(*logfile_in_question*)]*.log {
olddir /var/log/apache2/old
missingok
...
849
Posted By Arnaudh78
Hello scriptor, What is your OS ? Which...
Hello scriptor,

What is your OS ? Which command do you use to add this user ?
Forum: SCO 08-19-2017
7,297
Posted By Arnaudh78
Hello jochen, Maybe try: echo -e...
Hello jochen,

Maybe try:
echo -e "$password\n$password" | passwd "$user"

Regards,

Arnaud
598
Posted By Arnaudh78
Thanks for your reply, my version is Python...
Thanks for your reply, my version is Python 2.7.6,
my_string = raw_input(": ")
It work for me :)
598
Posted By Arnaudh78
Python problem with input
Hello everyone,


I have just started python, and there is something that escapes me. I don't understand why my little script doesn't work.

When I do, it work:

my_string = "bonjour"

if...
1,677
Posted By Arnaudh78
Hello Yanisol, Below a little script which...
Hello Yanisol,

Below a little script which should do the work:

#!/bin/bash

user_sftp="We1234"
pass_sftp="1234"
server_sftp="We12345@hostname.com"


cd /file2transfert/

sshpass -p...
407
Posted By Arnaudh78
Sorry for the response delay, I used an another...
Sorry for the response delay, I used an another way but apparently it helped other,

Thanks !
407
Posted By Arnaudh78
Write column
Hello,

I looking for a simple way to write into a file in column, e.g:

I've a file contains below:
1

And I wish add another number from another command something like this:

1 2

I hope...
684
Posted By Arnaudh78
Thanks It work:):b:
Thanks It work:):b:
684
Posted By Arnaudh78
Grep regex
Hi everyone,

I'm looking for a grep command to match the following pattern from a file:
<EGS>10234567<EGS>

I used this following command to do this:
grep -E '^<EGS>[0-9]{8}<EGS>' test.txt
...
474
Posted By Arnaudh78
Hello ctrld, You could to use a simply command...
Hello ctrld,
You could to use a simply command like this and why not to use crontab to perform this test periodically :
ps -aux |grep apache |grep -Ev 'grep' > /dev/null || service apache2 restart...
596
Posted By Arnaudh78
It work perfectly ! thanks
It work perfectly ! thanks
596
Posted By Arnaudh78
Bash script: problem with a function which use colors
Hello guys :)

I've a some issue with a function which use the bash colors in my script.
An example :

#!/bin/bash

set -x

log_in(){
host="srv1"
remote_files="log/"
...
923
Posted By Arnaudh78
Thanks all !:b:
Thanks all !:b:
923
Posted By Arnaudh78
Sorry but I don't understand ?
Sorry but I don't understand ?
923
Posted By Arnaudh78
sed question
Hi, :)

I tried this to append a line with sed, e.g:

cat -n "$CONFIG_FILE" |sed -n '7,100p'

read -p "Please choice a line :" INPUT_LINE
read -p "Please enter the path of file or...
877
Posted By Arnaudh78
How to avoid the "temp files" in my script?
Hi ! :)

I noticed that I create often of temporary files to keep character strings or other and I wish to avoid that if possible ? e.g :

#!/bin/bash
CONFIG_FILE="conf.cfg"...
576
Posted By Arnaudh78
Thank you !
Thank you !
576
Posted By Arnaudh78
Read -p problem
Hi, :)

I tried to make of "line returns" with "\n" :

read -p $'Do you really want append this line in '$CONFIG_FILE''\n'IP CLIENT: '$IP_INPUT' - PATH: '$PATH_INPUT''\n'y/n ?:'...
1,085
Posted By Arnaudh78
Yes I found.. I copied the script and conf from...
Yes I found.. I copied the script and conf from notepad..I deleted both files and recreate, they work ty too
Showing results 1 to 25 of 78

 

Featured Tech Videos

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