Software :: Crond Not Starting Shell Based Apps / Sort This?
Nov 17, 2010
I tried using cron to start rtorrent. But I couldnt start it successfully. My crontab looks like this.
Code:
# m h dom mon dow command
40 22 17 11 * rtorrent
My cron is running properly. How could I start a new shell , so that rtorrent could run using cron.
View 2 Replies
ADVERTISEMENT
Feb 28, 2010
What options should I use when I'm using the sort command to sort the top 5 CPU processes (ps -eo user,pid,ppid,%cpu,%mem,fname | sort ??? | head -5) showing max to min usage?
View 2 Replies
View Related
Oct 12, 2009
i have a problem with sound. Previously my on-board sound controller was identified automatically and worked flawlessly. But now I don't have any sound in the system with the only exception of Xine-based applications (Xine itself, Kaffeine-xine and Amarok still play fine but all other software is silent)Have anyone had this problem before.I'm using Debian Lenny stable with KDE 3.5.
View 3 Replies
View Related
Sep 16, 2010
I recovered some 60,000 files with PhotoRec and need a script to sort them into individual folders based on extension. I was able to do this once before but cannot find the script again (sad thing is that I probably saved it on another HD that I'm having partition issues with, but that's another story....).I found this script:
Code:
#!/bin/dash
mkdir "$1"
for file in *.$1; do
mv "$file" "$1"
done
While it does work, I am not looking forward to going through all 132 folders and typing in each extension. The last time I did it, the folder was automatically created based on the extension(s) found.
View 6 Replies
View Related
Jul 7, 2010
Code...
But I want to get the files in order which they created like file, file1 and file2
Any way to obtain this?
View 6 Replies
View Related
May 22, 2010
I did a fresh install of wine (beta from ubuntu software center) on ubuntu (10.04)However the apps take 5 minutes or so to start up.
View 6 Replies
View Related
Jan 9, 2010
KDE 3.5.4Kernel 2.6.17.13Slack 11A few weeks ago, my system locked up and I had to do a hard reboot (hold down power button). When I powered back on, the programs (KDE System Guard, Konsole window, MythFrontEnd) that were running at the time of the lockup appeared again. I exited System Guard and the Konsole window and then restarted normally. However, they keep appearing in the same spot when I log in to KDE. I looked through some logs in /var/log, but I don't see anything I haven't seen before.I deleted the /home/myuser/.kde/cache-hostname folder and its contents while in single-user mode, but that had no impact
View 4 Replies
View Related
Oct 11, 2010
My PC completely freezes after viewing any program on ABC's (Australian Broadcasting Corporation) iView service. The time at which it occurs varies but it completely locks the PC.
I'm running 10.04.1 and have an Nvidia 6200 card, I'm running the propriety drivers.
Could this be an issue with my graphics card? I updated it a couple of months ago and can't think of any other changes that have been made.
I have the latest version of Flash.
My biggest problem has been coming across someone else who has experienced the problem so how should I be going about trying to debug it?
View 5 Replies
View Related
Oct 22, 2010
On Maverick, I noticed a couple of days ago when I started an MP3 of a single tone recording it had a 'crackle' for about a quarter of a second at the start of playback. I initially thought there was a problem with the recording but I have noticed it is universal and I now pick up it is happening on some songs too (particularly if they start on a single note, not all songs seem affected).
This is a problem if I double-click a sound file which I open in Totem, it's also a problem if I start playing an affected track on Rhythmbox, it also happens if I just hover the mouse to start playback, but interestingly any problematic file if I load into Audacity there is no problem at all and the file plays correctly.
I doubt anyone else will have noticed this bug as it is so small and I wouldn't have picked up on it had I not been playing a single tone recording, but now I have picked up on it I can detect it all the time which is annoying. Has anyone else noticed at all?
View 1 Replies
View Related
Feb 19, 2010
I used MusicBrainz Picard to tag FLAC and Mp3 files, fixed any necessary genre tags in Rhythmbox, and used EasyTag to rename the actual files.But now I'm interested in using those genre tags as folder names...is there any program that will sort my music into folders based on their genre tags?
View 5 Replies
View Related
Sep 28, 2010
I have very little linux experience. And need some help with a bash script. I need to a script I can set cron to run to sort files out of a holding folder into final folders. It doesn't necessarily have to be bash, but I think it would be sufficient for this. File names are formatted as such when created: Dest-Date-Time-CID-Destination# I want the files to be moved from a all in one holding folder to a folder structure like this.
.../storage/year/month/day/Destination#/VarX(type)/hour/CID/'File'
I would need an if/else if/else statement to say if Dest = A set VarX = B If for example the file name was
infinity-20100927-17:00-1112223333-4445556666.wav
I would like the above file to end up moved from
.../holding
to
.../storage/2010/09/27/4445556666/Inbound/17/1112223333/infinity-20100927-17:00-1112223333-4445556666.wav
So the script will need to make directories based on information in the file name which is delimited by single dashes. Then move files from the holding folder to the newly created "sorted" folders.
View 15 Replies
View Related
Jun 3, 2010
I have a directory listing with many subdirectories having many files. I want to recursively search for the oldest 5 files starting from the base directory and not 5 from each subdirectory. I am writing a shell script which sorts them using ls -lRtur|egrep "txt|jpg" > /tmp/file1 Now from this /tmp/file1 file I want to sort the files same as what the ls -ltr command does that is oldest file time to newest file time first. How do I sort based on Linux time stamp? The files itself also have Linux timestamps embedded in them So I can sort based after extracting them as well if it is easier.
My /tmp/file1 has entries like below.
-rw-rw-r--. 1 usr1 usr1 705 2010-01-22 17:25 sample20100603173659.jpg
I want to get the 5 oldest files and then delete them.
View 1 Replies
View Related
Oct 1, 2009
I have a Windows-only language lab program ('Logolab') which provides students with listen and repeat exercises on audio and video material loaded by the teacher. It operates in conjuction with a Firebird database which stores subtitles (I think) and the sequencing data (the lengths of each segment) for recording (a recorded piece will be subdivided into small audio/video segments during which the student repeats what's been said).The audio and video functions are run internally by Windows Media Player, and the video input must be in .WMV format for the system to function.Using Wine, I've managed to install the language lab program on Ubuntu, as well as the Firebird database program. However, each time I start the language lab program, I get the message "Firebird database not started!".There is a BIN folder with the language lab software that contains a .INI file with the following contents:
Perhaps that needs to be modified for Linux or Wine on Linux? I've tried changing the DataBase field with the Linux path to the appropriate .FDB file, and likewise the ServerName field to the Ubuntu computer name or the ip address, but to no avail. Lately, I've installed the Linux version of Firebird and Flame Robin (which I couldn't understand).If anyone can provide any help or suggestions, I'd be most grateful (it's the only thing preventing me from migrating 100% to Linux).
View 3 Replies
View Related
Dec 17, 2010
So my aim is to install openSUSEx64 11.3 onto my Macbook; but for whatever reason, upon boot-up, the system won't recognize the USB thumb drive with the expanded image of openSUSE on it. I followed steps in Terminal to expand the image onto the said USB stick and know it worked properly because Terminal said "Process Completed." Do I need a special type of USB thumb drive or am I missing something? I am using a late-2009 Macbook. By the way, these were the steps used to prep the USB thumb stick:
1. Open a Terminal (under Utilities)
2. Run diskutil list to get the current list of devices
3. Insert your flash media
4. Run diskutil list again and determine the device node assigned to your flash media (e.g. /dev/disk2)
5. Run diskutil unmountDisk /dev/diskN
6. Execute sudo dd if=/path/to/downloaded.img of=/dev/diskN bs=1m
7. Run diskutil eject /dev/diskN and remove your flash media when the command completes
View 2 Replies
View Related
Feb 22, 2011
I tried to install Ubuntu 10.10 Server 32bits and 64bits but each time the installer stopped at 45% during "Starting up the partitioner" with the message "Scanning disks".
I installed Windows 7 64bits on the disks without problem.
I installed IPCop 1.4.20 successfully.
However, I tried to install Fedora 14 32bits and 64bits but it also stopped (ie crashed the partitioner) during the "Install To Harddisk" via LiveCD.
Similarly, OpenNode 1.0 also crashed with a bug report that has alot of python error messages. All mean nothing to me.
I even tried to partition the disks first via Fedora 14 LiveCD. Still the same thing.
Has anyone encountered this sort of problems before? If so, any resolutions?
Could this be the problem with the SATA2 disks?
View 7 Replies
View Related
Jan 1, 2011
How can I start up my Ubuntu Linux in the shell? Then how could I make sure to also get back to gnome?
View 1 Replies
View Related
Jun 21, 2010
I have a user that has been used for long time now that runs o C Shell... now there is a need to change it to Bash Shell? Can I cause a problem changing his shell from C to bash? I mean apps or variables?
View 2 Replies
View Related
Sep 2, 2011
i need to add a line in the login start up file(s) (one of ~/.bash_profile, ~/.bash_login, or ~/.profile) and startup file run by my shell when started as a non-login shell (~/.bashrc) so as to set up my account envirnoment for one of my courses.I don't know how to proceed with this. I tried doing this in my ubuntu enviroment and my system got locked after that.
View 3 Replies
View Related
Jan 9, 2011
I need to start a (bash) script in XFCE or GNOME so that, by double clicking its icon, it opens in a new shell window where it can be stopped with ctrl+c. As it is, when I start it, it runs in background (does not open window), so I need to manually start terminal and kill process. Also I don't see the output and that is important.
View 7 Replies
View Related
Mar 28, 2010
I've been recently interested in shell scripts.. and my friend wants me to create a script that allows you to ping.Ive been trying to find info about how i could set this up but found nothing..also all i really need to create a shell script is the note pad and set it as a .bat file?? or do i need a program to make a shell?
View 8 Replies
View Related
May 17, 2010
When I try to invoke 'source' command from within a shell script, namely, myscript.sh, I get the following error message code...
View 1 Replies
View Related
Mar 13, 2011
Unable to install gnome shell.
using ubuntu 9.10.
tried both way, terminal and ubuntu s/w center.
"Unable to fetch......" error occurs.
View 3 Replies
View Related
Jan 13, 2010
I forget which one it was, but the prompt looked like this:
Code:
[blah]$ somecommand
Which shell has this sort of layout?
View 8 Replies
View Related
Sep 7, 2009
I recently went to make a change to crontab (crontab -e) but by mistake typed crontab -r. My crontab file disappeared - no problem just recreate I thought.
After recreating it with 30 22 * * * /sbin/shutdown -h now
I though all would work and my server would shut down. Even though crond is running it did not work
View 4 Replies
View Related
Dec 5, 2009
I have a php script that i made to check if the internet is working and if not, it should execute a command that starts a service on my server (service jistarter start), and i want to run it every 3 minutes, so i added it to the crontab, this is how it looks:
The problem is that cron isn't executing it or something.. i don't know but the service it was intended to start, doesn't start.
The thing is that the script runs fine when i run it myself, in all the 3 methods it woks fine: "/usr/bin/php /srv/checkping.php" or "php /srv/checkping.php" or "/srv/checkping,php" (it has chmod 755):
This is the file:
View 2 Replies
View Related
Aug 22, 2010
"When first starting, the shell inspects argument 0, and if it begins with a dash '-', the shell is also considered a login shell" - from the dash man page. Could someone please explain this to me in a way that I actually understand?
View 1 Replies
View Related
Nov 13, 2010
I just installed GS following the instructions here:[URL]... and the classic way of getting GS to start at login (adding gnome-shell --replace in start up applications) doesnt work.
To start GS now we have to use the command "~/gnome-shell/source/gnome-shell/src/gnome-shell --replace" via the terminal adding that to start up doesnt work either, does anyone know how to get GS to start at login?
View 6 Replies
View Related
Jun 9, 2011
When I type nautilus in shell and run, the nautilus doesn't start.
while I use Alt-F2 and then type nautilus, the nautilus start.
why?
View 4 Replies
View Related
Sep 8, 2009
I need a script that will take all the files in a given directory and create new monthly sub-directories and sort all the files based on the creation date into the appropriate directory.For example, all files created between 01/01/09 and 01/31/09 will be placed in 'JAN-2009'
View 5 Replies
View Related
Aug 30, 2009
However, "E233: cannot open display" error appears when starting gvim on ubuntu 8.04root shell.
E233: cannot open display Press ENTER or type command to continue # kdesudo gvim /etc/fstab kdesudo: cannot connect to X server.
View 5 Replies
View Related