0
votes
0answers
26 views

How can I automate securely wiping deleted files?

I am looking for a way to automate securely wiping deleted files from my server, including files deleted in shared directories by users on remote devices. I have Ubuntu Server 12.04 on an SSD (ext4) ...
1
vote
2answers
103 views

Create a new column in the begining of text file with concequtive numbers from 1 to 32 after finding a specific word [closed]

I have a file with the following format: #pair: 0 1 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 ...
2
votes
1answer
69 views

Tool to arrange browser windows on multiple monitors, interact with web page - all on startup?

Imagine you wanted to arrange content for a video wall type application. I'd like the computer to - upon startup - open a handful of browser windows, potentially interact with them (log in, drill in ...
0
votes
1answer
20 views

how can i keep several linux virtual containers in sync

I have one website which initially we were hosting externally and we three environments like DEV TEST UAT PROD Now they have given us `4 virtual containers where i have to install everything ...
2
votes
1answer
118 views

Remove Partition Table or wipe HDD automatically

My school is currently moving into a new building with new computers, so they're selling the old ones. Now, I need a live CD to automatically wipe the HDD or remove the partition table. There's no ...
0
votes
1answer
37 views

How can I run a command at login?

I would like to run a command at login on my Fedora 19 GNU/Linux system. What is the best way to do this? Note: i am using the GUI. Thus, I could not simply place the commands in my .zshrc file. They ...
0
votes
0answers
51 views

How do I launch an hourly version of anacron?

I have a cron job (system update) that fires off every hour. However, I would like it to be reset every time the machine resumes from standby or hibernation. The command is already launched at each ...
0
votes
2answers
71 views

Make directories for each file placed in main directory [duplicate]

I want to place a list of files into individual directories I create from each filename. So given the files in the root directory: Movie1.avi movie2.m4v movie3.mp4 I want to mkdir Movie1, movie2, ...
0
votes
0answers
192 views

Getting exit codes from LFTP

I'm using a short lftp script on cron to download files after they are uploaded to an ftp server. lftp -u user,pass sftp://server:port -e 'mget -c -E path/to/file/*.zip -O ...
8
votes
3answers
368 views

What should I make my computer do while I'm away from keyboard? [duplicate]

During the day, usually I'm away from my computer for 3-5 hours. I also sleep 6+ hours every night. I run Arch Linux x64 on my computer. Besides the usual things that do not require user ...
0
votes
1answer
95 views

Ubuntu - Disk Duplication - Automation

I know very little when it comes to linux but I'm looking to construct a cheap disk duplicator out of an old server that we have. The server is currently running Ubuntu 12.04LTS and has 8 hot ...
1
vote
1answer
236 views

Need Tool to Extract ER Diagram fom PostgreSQL 9,1

Guys I need to compare 2 different databases running in PostgreSQL. I would like to use some tool to extract the diagram in a automatic way, Ive tried pgadmin3 and pgdesigner but they seem ...
-2
votes
3answers
507 views

how to transfer zipped folder from windows desktop to unix server without using tools like winscp

I'm a newbie to unix. My requirement is to create an automation script which will transfer a zipped folder from my/remote desktop to an unix server. Tools lik WinSCP shouldnt be used. No manual ...
2
votes
0answers
66 views

How to launch sshuttle without superuser pwd prompt

I love the sshuttle "poor man's VPN", however, having it require me to enter superuser pwd when launching each time makes my life sad. Is there a way I can either elevate the script or modify it in a ...
2
votes
2answers
4k views

bash - Sending simulated keystrokes

I've recently been trying to write a script that can be used to automate my c++ program in bash. If you know AutoIt, I can simply show you an example of what I am trying to do: send("1{enter}") or ...
1
vote
1answer
147 views

Automatic file encryption/decryption: detect file is closed in Mate/Gnome application

I'm writing a bash script to automatically decrypt file for editing and encrypt it back after file is closed. File type could be any: plain-text, office document, etc. I am on Linux Mint with Mate. ...
0
votes
1answer
106 views

Create a resized versions of photo collection and keep it in sync

This is for Windows, but I could run a virtual Linux client if there is an awesome solution not in Windows. I keep a master photo collection, and I need to have it automatically sync to e resized ...
0
votes
1answer
38 views

Should restarting a Linux host from within a cfengine policy be avoided?

Specifically, if cfengine is used to install the most recent version of an onboard device's firmware and do some tests to see if a reboot is required, and the results indicate that the machine needs a ...
0
votes
1answer
132 views

Sort files based on their meta-data

At a local storage (ext3/ext4) I have thousands of files of various types. I need to sort them, however I can come up with the criteria to do so as long as it's possible to get an overview again. I ...
0
votes
1answer
973 views

Correct way to start applications on boot in Linux

What is the correct way (if possible distribution agnostic) to start application automatically in Linux (Debian Wheezy)? In need to know two things. How to autostart generally, so that the application ...
1
vote
2answers
3k views

How to automatically change permissions for files copied to a directory?

I would like to automate changing permissions for files copied to a directory. For example, any files copied to folder X should have mode 755, and any files copied to folder Y should have mode 700. ...
3
votes
1answer
70 views

Automated printouts from a wireless printer

I have a wireless printer which is always on, and an always on fanless Linux server. Looking at the mprinter project on Kickstarter I started to wonder if there is a way for me to prepare an ...
1
vote
0answers
130 views

What is the best tool to perform an automated/unattended virtual guest os install?

I would like to be able to add (and remove) virtual machines from my Ubuntu (12.04) host OS using 'unattended guest os installation' method. What I mean here is to pass a command to the software via ...
0
votes
1answer
223 views

Convert Setup Script (BASH) To Ask Password Only Once?

I have a script that I use to set up my laptop automatically with all of my settings. I experiment with different Linux distributions constantly on this laptop, so it is very useful to have a script ...
2
votes
1answer
224 views

Tool or web app for Microsoft Office documents preview

I need a free tool for Linux or web service to create previews for MS Office documents automatically. Tools I tried: https://docs.google.com/viewer LibreOffice unoconv All of them have some ...
4
votes
1answer
1k views

How to get a gnu screen session to auto start with a specific command?

I need a certain program to run inside a gnu screen session, automatically when an ubuntu machine boots. How can I set it up so that later on I can just screen -r and interact with the program?
2
votes
0answers
192 views

Capture key events at system level to control e.g. alsamixer

In Linux window managers, it is easy to define actions for key events - e.g. in openbox: <keybind key="XF86AudioRaiseVolume"> <action name="Execute"> <command>amixer set ...
0
votes
1answer
124 views

How to automatically move files to the network

I'm looking for an open source solution to a piece of Windows software that will monitor a folder on a Linux server via Samba and copy them to the local machine. I need this to run on a virtual ...
0
votes
1answer
40 views

Telling any program to perform some action

In linux (Ubuntu 10.04) is there a command line way to tell a program to preform an action? Let's say, for example, tell pid 12345 to execute "Ctrl+S" without stealing focus from my current window? I ...
1
vote
1answer
429 views

Jobs with anacron won't run

I would like to run two bash scripts daily using anacron in order to backup some data. Unfortunately I can't figure out why said scripts are not executed. For test purposes I let cron execute the ...
0
votes
0answers
598 views

Any Autohotkey alternative for KDE/Linux?

I am looking for alternative to great Windows app AutoHotKey. So far I've found only AutoKey which can be quite usefull, and may know more then I think, but the documentation is sparse, and it mostly ...
0
votes
2answers
600 views

How to tell when a machine is fsck-ing and hasn't had a kernel panic?

I have a server with Debian on it that I regularly reboot after upgrades. Sometimes (on schedule) fsck will check a disk when the computer is booting. With the exception of sitting in front of the ...
1
vote
3answers
249 views

Linux: passing commands to CLI using a script

is there any way I can pass commands to the CLI of a tool directly? I would like to script some actions, for example: ./OpenBTS < "tmsis" I do not need to retrieve the results (I watch it in ...
2
votes
3answers
2k views

Always run a particular python script when system starts

How can I have a particular python script always run on my system automatically when my system starts until I shut down? There should be some simple way by which I can just put that small script in ...
2
votes
0answers
101 views

Query value of button with current focus (together with xdotool) from the command line

I am using xdotool to automate some GUI usage. That works pretty well, but sometimes I want to check what button currently has focus. So I need to query the value of that button. xdotool doesn't seem ...
0
votes
1answer
923 views

Script for automated torrent downloads (from announce urls in IRC)

Some time ago I read a discussion in /r/linux and someone mentioned a script that checks new messages in IRC channel (in irssi client) and if they contain announce urls for torrents, they are passed ...
2
votes
3answers
395 views

Backup of 5TB server

I'm looking for a software that will help me backup a server with 5TB of data. My wishlist: Backup on 1-2TB SATA disks Should need little to no configuration (just the directories to backup and the ...
4
votes
4answers
467 views

How to add some string in the head of a new created file automatically in VIM?

To be specified,what I want to do is: if I create xxx.php,#!/usr/bin/env php will be the first line of the file if I create xxx.py,#!/usr/bin/env python will be added first. How can I approach ...
3
votes
2answers
130 views

What is the recommended way of automating a task in Linux?

I'm still kind of new to Linux, but here's what I'm trying to do. I need to copy all subdirectories and files from one directory to another ever 5 minutes or so, with the old data automatically ...
2
votes
3answers
426 views

Auto extracting software for Linux? [closed]

Do anyone know if there's some decent software which auto extracts anything which gets downloaded (to f.e. ~/Downloads)? If, let's say, I download x.tar, it would automatically extract it to x ...
0
votes
1answer
256 views

Is there anything like a RoboTask for Linux?

For those who don't know about Robotask you could find info here.
2
votes
2answers
167 views

I mounted an extra partition for a Linux account and found it unmounted after reboot. Why?

I have an extra ext3 primary partition that I wanted to mount for a particular Linux user account. I ran mkdir, mount, chown, and all was good. However, upon reboot I have discovered that the ...