Search Results

Search: Posts Made By: lxdorney
Forum: Linux 01-10-2020
7,518
Posted By lxdorney
Thanks for the reply. I agree sir to use ascii,...
Thanks for the reply. I agree sir to use ascii, but we can't change the filename because our application read in filename.
Forum: Linux 01-09-2020
7,518
Posted By lxdorney
Enye issue filenaming and path
Hi All,

Is there anyone encounter filenaming with Ñ or ñ reading?.
Is the any other way to handle enye both redhat environment and java?

We look in the log and founfout reading pathname or...
2,215
Posted By lxdorney
Thank so much guys, I really appreciate the time...
Thank so much guys, I really appreciate the time and effort to solved the problem.
2,215
Posted By lxdorney
@vgersh99 thank you so much for the response and...
@vgersh99 thank you so much for the response and your time spent to figure out my problem, the output is looking good there have little modifications and need to be done, BTW this will use as a...
2,215
Posted By lxdorney
Create a XML file for each row from the csv file
I have a CSV file that looks like this:

File,Name,birthdate,Amount
File1.xml,Name1,01.02.19,1000
File2.xml,Name2 01.02.20,1000
File3.xml,Name3,01.02.21,1000

I need it to turn it into an XML...
3,483
Posted By lxdorney
Hi thank you very much for your time, is solved...
Hi thank you very much for your time, is solved now other way around.

to this link Auto-mounting USB storage with udev >> Axllent.org (https://www.axllent.org/docs/view/auto-mounting-usb-storage/)
3,483
Posted By lxdorney
Here's the output fdisk -l Disk...
Here's the output

fdisk -l

Disk /dev/sdb: 8019 MB, 8019509248 bytes
255 heads, 63 sectors/track, 974 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size...
3,483
Posted By lxdorney
cat /usr/local/bin/test.sh #!/bin/bash ...
cat /usr/local/bin/test.sh

#!/bin/bash

LOG_FILE=/opt/weekly_backup.log

DEVNAME=$(/sbin/fdisk -l |/bin/grep FAT16 |awk '{print $1}') 2>&1 >> $LOG_FILE

#fdisk -l |grep FAT16 |awk '{print...
3,483
Posted By lxdorney
Here what happened when issued run udevadm...
Here what happened when issued run udevadm trigger manually.

cat weekly_backup.log

New usb device detected at
mount /media/usb/test
mount: can't find /media/usb/test in /etc/fstab or...
3,483
Posted By lxdorney
If manually mount the /dev/sdb1 /media/usb/test...
If manually mount the /dev/sdb1 /media/usb/test no error sir, my script works run manually in terminal,but is not working from udev trigger when plugin the usbdisk.

Thanks for your time
3,483
Posted By lxdorney
%users is replace my user as root sir? In my...
%users is replace my user as root sir? In my visudo put this root ALL=/sbin/mount /mnt/cdrom, /sbin/umount /mnt/cdrom, /bin/fdisk /bin/grep is this right sir?
3,483
Posted By lxdorney
I dont know where can i add permission, the...
I dont know where can i add permission, the trigger of my script when the usbdisk plugi it in. Do you have any idea?
3,483
Posted By lxdorney
Yes Sir you right the output mount /dev/sdb1...
Yes Sir you right the output mount /dev/sdb1 /media/usb/test but mounting is not working
3,483
Posted By lxdorney
Supposedly it will return /dev/sdb1 in my case,...
Supposedly it will return /dev/sdb1 in my case, already tried manually like this DEVNAME="/dev/sdb1" and put echo $DEVNAME and i see the output, but is not mounting
3,483
Posted By lxdorney
Yes sir I did tried /bin/fdisk, /bin/grep ...
Yes sir I did tried /bin/fdisk, /bin/grep

------ Post updated at 05:47 PM ------



CentOS 6.8 Sir
3,483
Posted By lxdorney
Fdisk and grep command not working in udev trigger
Hi Guys,

Can someone take a look at my scripts what missing, plugin usb drive the script is running can log all my echo but cannot execute command. Is there any configuration in linux or to my...
1,147
Posted By lxdorney
Convert text to csv
Hi,

Is there somebody there to post an idea on how to convert this 5 liner row to 1 liner or tab delimiter to be import to database.

Here the text file format:

Description: Description1...
831
Posted By lxdorney
Thanks a lot Sir, This is working
Thanks a lot Sir, This is working
831
Posted By lxdorney
No sir in shell scripts, but im working on...
No sir in shell scripts, but im working on notepad++ with regular expression

find: [^"]*"([^"]+)"[^"]*
replace: \1

I can get the pattern between the two quotes but I cant make it in one line.
831
Posted By lxdorney
Search pattern between two quotes and make 1 row
Hi All,

My file

cat file
" test1 test1 "
" test1 test1
test1 test1"
"test1 test1
test1 test1
test1 test1 "How to achieve this
i want the result:
cat file
test1 test1
test1 test1 test1...
6,972
Posted By lxdorney
GNU bash, version...
GNU bash, version 4.1.2(2)-release-(x86_64-redhat-linux-gnu)
Usage: sh [GNU long option] [option] ...
sh [GNU long option] [option] script-file ...
GNU long options:
--debug
...
6,972
Posted By lxdorney
OS: centos 6.9
OS: centos 6.9
6,972
Posted By lxdorney
hi Scott, here my script ...
hi Scott,
here my script


func_monitoring () {
tail -fn0 /tmp/test.log | \
while read line ; do
echo "$line" | grep -q "pattern1"
echo "$line" | grep -q "pattern2"
if [...
6,972
Posted By lxdorney
same issue, tail -fn0 /tmp/test.log | \ ...
same issue,

tail -fn0 /tmp/test.log | \
while read line ; do
echo "$line" | grep -q "Pattern1"
echo "$line" | grep -q "Pattern2"
if [[ "$line" =~ "patern1" ]]; then
...
6,972
Posted By lxdorney
tried the break after my echo but the script not...
tried the break after my echo but the script not break right away, I need to trigger append the pattern again to the /tmp/test.log
Showing results 1 to 25 of 78

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