bash: how run script when file is put into folger and how parse xml file via bash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi, I'm looking for a method for do this thing:

a) when a file is put into a specific folder (via ftp or http or smb), a
shell script must be automatic run.

b) the file is a simple xml and I must parser it and convert it to a csv
file with bash script.

For a) i can use a cron job, but i'm looking for another solution more
efficient and started only when the file is come ...

For b) now I use grep+sed+awk, but I'm looking for a best and more solid
method for extract only some specific field from the file.

Someone can show me, if exist, more better solution for a) and b)?

Many thanks ... and sorry for my bad English :-)
  
-- 
Dario Lesca <d.lesca@xxxxxxxxxx>

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux