Ubuntu :: Write A Script That Will Move The *.mpg Recording Onto Server?

Oct 16, 2010

Currently running mythbuntu 10 and I'm trying to write a script that will move the *.mpg recording onto my server when it has finished recording. It is automated so I need it not to prompt for the password.

This is what I have so far:

1) System events, when finished recording: /var/lib/mythtv/mover.sh

2) mover.sh (chmod +x)

Code:
#!/bin/sh
#this is to move the files after recording locally
#to a unRaid box (reiserfs conflict)
sudo mount {server ip address}:/mnt/cache/ /mnt/pvr
sudo mv /var/lib/mythtv/recordings/*.mpg /mnt/pvr

3) sudo visudo

Code:
{name of pc} All = NOPASSWD: /var/lib/mythtv/mover.sh

This is my first script and I don't know too much so go easy, but I'm not sure what I'm missing.

View 1 Replies


ADVERTISEMENT

Ubuntu :: Write A Bash Script Which Will Find Files Then Move Them To A Specific Directory?

Sep 1, 2011

I'm trying to write a bash script which will find files then move them to a specific directory.

So far I have:

Code:
#!/bin/bash
#script to find and move files
src_dir="/path/to/source/directory"
des_dir_mov="/path/to/destination/directory/for/movies"
des_dir_img="/path/to/destination/directory/for/images"
find $src_dir -iname '*.avi' -type f -exec mv '{}' $des_dir_mov ';'

I'd like to have all the possible movie file types then the image file types checked in a loop.

Every time I try to include an array in this script it breaks

View 3 Replies View Related

General :: Write A Script To Move Specific Files In Various Folders To One Folder?

Nov 16, 2010

Terribly new to Linux and find it mindboggling. I work on brain imaging and unfortunately all of the analysis runs on Linux, and I do not understand computers well coming as I do from a medical background. So my question - There are various folders of patient MRI scans (folders called P1, P2, P3 etc) and within them are enclosed certain files that I am interested in (always called the same name in all folders, say image001). I would like a script that enables me to copy and move this image001 in all these individual folders to another folder altogether.

View 13 Replies View Related

Debian Multimedia :: Recording Screen - Install/configure A Server - Dns - Dhcp

Feb 7, 2011

I need to install/configure a server (dns, dhcp, etc) and since im running Debian I want to configure a Debian server, but i want to do it on a virtual machine, cause i dont want to have all that stuff on my system, now Im wondering whats the best screen recorder that i can use on Debian for this purpose.

View 3 Replies View Related

Server :: Move Mails On Exim Server To Postfix Server?

Jan 12, 2010

how can I best transfer my mails that are sitting on my old exim server to my new postfix server?

View 1 Replies View Related

Server :: MySQL Move Database / Server Doesn't Start

Nov 3, 2010

I'm trying to move a mysql 5.1.50-community InnoDB database from one location to another.When starting the service I get:Starting MySQL.Manager of pid-file quit without updating file [FAILED]I've searched for a way to do this but I can only find people who describe what I've just done.

View 6 Replies View Related

General :: Can Move Windows File Server To Server

Oct 21, 2010

we have moved to linux platforms now. can i move my windows file server to linux server,main work on this windows server is sharing folders which having secure permissions to respective groups & users.i knew we can share folder on linux. before formatting my windows server i want to know can we create new users to access particular folder?. users will not have any other kind of access except accessing there data folder. currently we have below scenario :users named a,b,c,d & e. all users having their folders to access. a & c are in the same group & they have common access to other common folder. please help me to change my server in ubuntu, i have planned to migrate in ubuntu server 10.04 (64 bit).

View 5 Replies View Related

General :: Move Files From One Server To Another Server Using Scp?

May 25, 2011

I am trying to move uploaded file to another server using scp. following is the script i am using and error;

"mv.sh"
#!/bin/sh
now=$(date +"%y-%m-%d-%M")

[code]....

View 1 Replies View Related

Ubuntu :: Panel Applet - If Right-click Doesn't Include Move - How To Move That Icon

Sep 19, 2010

For Ubuntu 10.04 LTS / Gnome 2.30.2.

I have two applets on my Gnome panel -- NetworkManager Applet 0.8, and Klipper (it works better than Glipper) -- that I want to move.

HOWEVER, right-clicking the panel icons does not enable me to move these applets, as follows:

- NetworkManager Applet 0.8 does not include a Move item in its list of options.

- Klipper displays a long list of Klipper options but no Move option.

How I can move these items to new locations on the Gnome panel?

View 6 Replies View Related

Server :: Windows 7 Can't Write To RHEL 3 Server When Files Greater Then 1kb?

Mar 12, 2010

we are running a Red Hat Enterprise Linux ES release 3 (Taroon Upd 5) Kernel 2.4.21-32.ELsmp since several years. The server hosts an old ERP system who will be replaced at the end of the year.However it is necessary that some collegues are able to write some files to that server regulary. Since we are running Windows 7 on several machines, those users aren't anymore able to write to the samba share. Getting files from the share works fine.

But the problem seems not to be situated at the samba service because also the transfer using SSH (WINSCP) from any Win7 system to the server doesn't work.During testing we recogniced that transfering files smaller then 1kb works fine ... any file greater then 1kb ends up in an connection abort. This works with samba and also using SSH.All the workarounds editing some registry entries in Win7 for improving the interoperability between vista / win7 and samba don't work for us ... and also seem not to be the source of the problem.Is there a general known incompatibility between our RHEL version / kernel and Windows 7 regarding file transfers?

View 6 Replies View Related

Ubuntu :: How To Move A File Over Ssh To Server

Apr 4, 2010

how to move a file over ssh to server but I cant get it back via terminal

Code:

scp Downloads/test8 user@host:home/user/Documents

moves it to server now i need to transfer back, I know I can do it with nautilus but i wanna learn terminal, I have googled but cant find what i,m looking for

View 2 Replies View Related

Ubuntu Servers :: Move XML Files From One Server To Another?

Dec 19, 2010

I'm looking for ideas on how to transfer a group of xml files from one server to another server, either in a regular interval or ?I have a listing program, it creates a directory or classified ad type listing. When one of these is created, or an existing one is edited an XML file is created. I need to take these files and get them to another server. I've read about SOAP, FOPEN and of course FTP.

View 1 Replies View Related

Ubuntu Multimedia :: Skype On Ubuntu 10.04 - Sound Devices - Recording Is "PulseAudio Server (local)" - Doesn't Work

May 22, 2010

I just installed skype 2.1 beta 2 (the deb file) from the skype website, but the only option I see under Sound Devices -> Recording is "PulseAudio Server (local)" This doesn't work for me, as the skype test calls don't actually record anything I say. I use skype a lot and FINALLY got it working under karmic, but I needed to upgrade to lucid and now it's broken.

When I open Sound preferences and look at the Applications section, Skype shows up as recording when I run its test call... but no sound is recorded? How is it possible that my sound card picks up something recording but doesn't actually record it when I'm in skype?

View 9 Replies View Related

Server :: DNS Move Looking For Confirmation

Aug 18, 2010

I have a DNS server at an old companies place and that box will be losing it's IP. The whois record for the domain goes to godaddy which has 2 'A' records;
ns.domain.com
ns2.domain.com which point to the current 2 DNS servers. Now if I have a new server up and running and the zones copied over, do I just need to change the 'A' location for ns.domain.com to this new IP? I remember back in the day you had to 'register' the nameserver with the registrar, etc.I haven't touched this stuff in a while, and before I go and change the IP of the nameserver, want to make sure all is in check.

View 2 Replies View Related

Ubuntu Servers :: Easiest Way To Move 200 Accounts To New Server?

Feb 9, 2010

I'm in the middle of moving my lab to a new server in the middle of the school year.. and need to copy all the user accounts to the new box, hopefully with all the student's passwords and contents of their folders intact.And since we are using the system daily, I need to do it all in an hour or 2.I'm thinking I can just

1. diff /etc/passwd and /etc/shadow from the old the new
2. copy all the student folders to new /home
3. write a script to set the permissions on all the new /home folders to match the user names.

It seems easy and safe so long as I back up the 2 existing files..Any reason not to try? Or is there an easier way?

View 1 Replies View Related

Server :: Move Qmail From One Server To Another?

Dec 6, 2010

I have a qmail mta that needs to be moved to another server. The current host system will be discarded due to end of SLA for the hardware support.

The qmail mta is setup according to the guide on [URL]. There are currently about 10 postboxes and about 30 forwards defined with a total of about 1000 emails.

I don't want to send each old mail to a backup postbox outside qmail and resend it back after I setup a new qmail mta on the new server.

I would like to setup qmail in a configuration where each mail would be automatically replicated on the qmail mta, where the new mta would take over duty when the old one will shutdown. Anyone had a similar project and know how to do this? If not does anyone know how to move a qmail install onto another new system? Or may be how to export and import the postboxes and forwards?

View 5 Replies View Related

Server :: Move The Server To It's Own Machine?

Mar 29, 2010

Im running my website on a Debian machine that started to get high load so i wanted to move the mysql server to it's own machine. and here is the problem. The second machine is also Debian and is behind a router only running mysql. i have forwarded the port 3306 to the second machine and created an A record for "mysql" so mysql.mydomain.com points towards the second machine. However, when i try to connect my websites script to the second machine i get the following error "Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111" when i open the site in a a browser.

edit: i can connect to it without a problem localy trough phpmyadmin etc.

View 5 Replies View Related

Server :: Move Dovecot Config From 1.x To 2.x?

Mar 23, 2011

I have a very basic "working" Dovecot configuration from 1.x as shown below:

Code:

auth_mechanisms = plain login
mail_location = maildir:~/mail
passdb {

[code]...

My question is I've built a new server and now it has Dovecot 2.0.11 & I would like to know if I need to generate a new configuration file or will the above 1.x work in 2.0.11? The configuration file 'dovecot.conf' generated by 2.0.11 is all commented out and I don't know what I need to uncomment / add to the config to get IMAP working.

Code:

[root@mail /]# doveconf -n | head -2
# 2.0.11: /etc/dovecot/dovecot.conf

View 1 Replies View Related

Server :: Move Over 500 Sites From Webserver

Jul 30, 2011

What's the best way to move over 500 sites from a webserver with apache and mysql on the same server.. to a new server?

View 1 Replies View Related

CentOS 5 :: How To Move Website From One Server To Another

May 17, 2010

Can't find any step by step info about moving web site from one server to another. I have to move website from open BSD to CentOS. Maybe somebody can help me with this. All I did is : copied www directory to new server, installed apache, installed php, installed mysql, copied mysql datadase to new server.But website still not loading.

View 1 Replies View Related

Ubuntu :: Use Rsync & Ssh To Move A Backup Folder Some Computers To A Server?

Mar 13, 2010

I am trying to use rsync & ssh to move a backup folder some computers to a server. I found a command that is supposed to do this, but I am having issues getting it to work.

Code:
rsync -avz -e 'ssh -p 'port' 'username'@'hostname' ' /source/path host:/destination/path

View 2 Replies View Related

Ubuntu Servers :: Move Mails From Gmail To An Own Mail-Server

Sep 1, 2011

I've running my mails from 3 domains on Google Apps for several time, but I think it's time to set up my own Mail-Server now. I have a vServer and want to migrate my existing mails after setting it up. Now I have 2 questions.

1. Which components do I need / do you prefer for a mail-server(imap, smpt, webinterface)?
2. How do I get all my existing Mails in there?

View 2 Replies View Related

Server :: Ubuntu Doesn't Move To The Memory And Empty The Swap

Feb 2, 2011

In our cluster, both the server and worker had been gone to swap and the performance is extremely slow. Although currently the memory is free but I don't know why the in the swap area is still being there and ubuntu doesn't move them to the memory and empty the swap.

On the other hand, when I run

Code:
sudo swapoff -a
on the server it says:
Code:
mahmood@server:~$ sudo swapoff -a

[Code]....

View 10 Replies View Related

Server :: Move Background Process To Foreground?

Mar 5, 2010

is it possible in bash to run one command in background and after it's done show output with less? While background process is running I should be able enter another commands.What I have is this (sleep is only for simulation):

Code:
{({ ( tree / > tree.txt && sleep 2) & } && wait && less tree.txt) &} && wait fg &
Problem is that I don't know and I can't find how to move it to the foreground after completion.

View 14 Replies View Related

Server :: Mbox Utility To Move Messages?

Oct 4, 2010

I have an email server running postfix and popa3d under Debian. I have mailboxes in mbox (single file) format per user in /var/mail/username. I had my own mailbox get too many messages so popa3d refused to process per a compiled in security / anti-DOS limit, so I moved to /var/mail/username_bak. What is the best way to start moving the messages from /var/mail/username_bak to /var/mail/username? I do not see any utilities included with postfix or popa3d that do this, but I am hoping there are generic mbox utilities to easily do this.

View 1 Replies View Related

Server :: Log User Samba Who Delete Or Move Files/folders On Samba Server ?

Feb 8, 2010

I need to know is there any way to record or tracking or make logging if when user samba delete files or folders i can know that, cause sometimeon samba server some users complain they lost files, though i have daily backup and i can restore their files, i just want to know if or maybe some other users in one group accidentally move or delete the files.

View 1 Replies View Related

General :: Move All The Information & Configuration Of DNS02 To The New Server?

Apr 5, 2011

We do have primary & backup DNS both are running in Linux. I'm planning install the 3rd DNS & move the DNS02 to this server(DNS03)& remove the DNS02 later. Ho can I do move all the information & configuration of DNS02 to the new server? configuring the DNS03 & removing DNS02.

View 13 Replies View Related

Server :: Move File System Content Between 2 Disks?

Oct 14, 2010

I have to move all the files and directories between 2 file systems. Is it good practice to move them at once or first copy them and then move ? How to do this to preserve the permissions and directory structure ?

View 3 Replies View Related

CentOS 5 Server :: Move The Sendmail Queue Folder?

Nov 5, 2009

Is there a simple way to move the Sendmail queue folder? Presently it's at the default location on /var/spool/mqueue/ but when / recently ran out of space (my fault storing backups there), it was unable to receive any more mail. There is plenty of space at another partition. My /var/opt/scalix location lives on another set of discs with lots of room. I created a folder called /var/opt/scalix/sendmail/mailqueue/ but uncertain how to move the existing queue to it.

View 1 Replies View Related

CentOS 5 Server :: Can't Move The MYSQL Database Files

Nov 8, 2009

I just installed mysql and need to move the databases to a new location.I say 'no problem' I shutdown mysql (service mysqld stop) I configure my.cnf to point to the new location, which in my case is: /mnt/data/mysql. I know not very original naming. I do the old chown -R mysql:mysql /mnt/datal/mysql AND I copy all the files over (cp -R /var/lib/mysql /mnt/cgsvol/mysql) chmod 777 /mnt/data/mysql I ensure the chown worked (ls -a -l) and the files are there from the old directory. I can't load the daemon again. I check the log (/var/log/mysqld.log) and it can't write any test file to that directory.

(log file exact data).
091107 23:22:21 mysqld started
091107 23:22:22 [Warning] option 'max_join_size': unsigned value 18446744073709$
091107 23:22:22 [Warning] option 'max_join_size': unsigned value 18446744073709$

[code]....

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved