Search Results

Search: Posts Made By: Arnaudh78
903
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...
903
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: ...
1,322
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 ""
1,199
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
...
5,044
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...
14,656
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
...
2,528
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
13,533
Posted By Arnaudh78
Hello jochen, Maybe try: echo -e...
Hello jochen,

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

Regards,

Arnaud
2,003
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 :)
2,003
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...
6,353
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...
749
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 !
749
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...
1,332
Posted By Arnaudh78
Thanks It work:):b:
Thanks It work:):b:
1,332
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
...
841
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...
1,617
Posted By Arnaudh78
It work perfectly ! thanks
It work perfectly ! thanks
1,617
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/"
...
1,453
Posted By Arnaudh78
Thanks all !:b:
Thanks all !:b:
1,453
Posted By Arnaudh78
Sorry but I don't understand ?
Sorry but I don't understand ?
1,453
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...
1,981
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"...
1,065
Posted By Arnaudh78
Thank you !
Thank you !
1,065
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 ?:'...
2,001
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

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