General :: Running Two Files At The Same Time?
Feb 20, 2010
i have two bash script files namely, "a.sh" and "b.sh". Both the files contain some commands to run, how can i actually run both files at the same time, instead of running the file one by one?
View 2 Replies
ADVERTISEMENT
Jun 19, 2011
Under a Linux shell, how can I change the creation time of all a folder's files to the current time?
View 2 Replies
View Related
Oct 27, 2010
I have recently ported from Windows to Linux (xubuntu) I am a developer, i installed everything i need, LAMP. Now in Windows i used to turn off all unnecessary Services, i don't need the Apache or MySQL service running all the time. I used: net start mysql
Whenever i needed it. How do i do the same in Linux:
1. Disabling not-needed daemons from auto-starting?
2. Starting them only when i need them?
View 2 Replies
View Related
May 16, 2011
Linux bash inline command to execute a program and limit the resource.As I know, to limit the resource I can use ulimit command.But, the problem is when I set the CPU time limit 1 second, and then I want to execute another program with CPU limit 2s, the ulimit command return an error like this: bash: ulimit: CPU time: cannot modify limit: Operation not permitted and absolutely my program killed in 1 second.So, How can I make the second program running with the CPU time limit 2 seconds?
View 3 Replies
View Related
Nov 11, 2010
I have a script that executed 100000 C Programs, reads the commands from a file and executes them. There is a requirement to measuer the time that each of this 100K C programs running.If it exceeds 120 sec I want to Kill that Process.Any Idea to embed this in my shell script?
View 4 Replies
View Related
Jun 8, 2011
I am currently struggling with one of my tasks.I was asked to find a way how to determine how much time an _already running_ process is spending in user and kernel space.E.G. <some tool> <pid>[Control] + [c]<pid> spent 12.1 seconds in user and 1.52 seconds in kernel space.Does something like this exist? Basically I guess I am looking for something similar to time, except that the process is already running.So..a) Is there a tool which fulfills this task?b) Is there a way to write your own software which does the job? Is it even possible to code something I am looking for?I recently found strace -c -p <pid>, but well, this is not exactly what I was looking for.
View 3 Replies
View Related
Nov 26, 2010
For like windows you can resore your os to a state of peace kind of. If you messed up your vital files you could go back in time and restore you computer to a selected time. I was wondering if you could do that for ubuntu
View 4 Replies
View Related
Dec 14, 2010
Currently I am using the following command to copy and add date and time stamp to files.cp /home/work/file.grn /home/xfer/rename_`date +%Y%m%d%H%M%S'.grn.If I have five files for ex: file_1.grn, file_2.grn,file_3.grn ...can I copy those five files a different directory and with a different file name and with date time stamp to it.The output filenames name_1_yyyymmddhhmmss.grn,rename_2_yyyymmddhhmmss.grn,rename_3_yyyymmddhhmmss.grn ...
View 5 Replies
View Related
Aug 6, 2010
I am having a problem unzipping multiple files at 1 time.
Proper unzip command that will:
1) extract the file from the zip.
2) remove the zip file.
All my zip files start with SB and end with .emi.zip
SB*.emi.zip
View 2 Replies
View Related
May 18, 2010
We have few log files.We wanted to roll off log files during our portal down time. We'd like to keep four generation of the log files in the system.for examople:name of the log file is :/opt/IBM/activity.logwe wanted to cuttoff and keep 4 generations of actvity log in the system via script.
View 6 Replies
View Related
Mar 7, 2010
There are many time zone files accessible from the command line that don'thow up in the GUI ("system-config-time"). How do I add these time zones to the GUI
View 1 Replies
View Related
Mar 3, 2011
I have two systems running on linux. system one is running with RHEL 5.4/X86_64 hardware, system two is running with RHEL 5.3/i686 hardware. One filesystem is shared from system two and mounted as NFS on system one. Now when i do a copy from local filesystem to the NFS share from system one,it shows as follows
Quote:
-rw-r--r-- 1 xkinved rbak1 30 Mar 3 2011 king
But if i do copy with -p option then it shows right time stamp. Both machines are running with slight(minutes) different in time. Does this could be cause for this problem? The problem is happening while i do FTP from some other machines too.
View 3 Replies
View Related
Aug 6, 2010
We have a script that FTP files 3 times a day, once ant 02:30, 04:00 and 13:00. Once the process runs it puts a copy of the file sent in the processed folder. What I'm trying to do is check to see if the files are there and if not send an alert /email. The file names are IVF_20100806_*.150, PLAZ_ 20100806_*.151, TRAN_20100806_*.152 and TRAN_20100806_*.151
This is what I have
#!/bin/ksh
#
. ${HOME}/.bash_profile
check_file()
{
[Code].....
View 2 Replies
View Related
Jul 23, 2010
I have recently bought an ASUS Eeepc 4g and i am having trouble trying to run/open jar. files. As i am only 14 Years of age i am having quite a time trying to sort out this problem.. i have opened the command console and tried all the codes to try open or create shortcuts to try open and run a jar.file but i am not succeeding, if you can help me please write back on this post giving me a step-step plan on how to fix this! and if so then great would make my life alot easier on this laptop. and by the way i need to try open this file called rsbot v1.23 as it is a jar.file i am unable to run or open it by saving to the disk.
View 14 Replies
View Related
May 31, 2010
I am using the following script to creates list of accessed files.I like to add modified date and time of accessed files in the output.
For this what needs to be added in the below script??
#!/bin/bash
#
# creates list of accessed files
#
set $(date)
find /hdc160GB/programmers/projects -cmin -1440 > /hdc160GB/programmers/data/fileschanged/alert_$6-$2-$3.txt
View 7 Replies
View Related
Oct 12, 2010
I'm rather new to linux, and I have a dedi server. I know how to browse, install, remove etc, all the basics needed to use it. I've installed flvtool2, memcoder and ffmpeg, and at the moment im converting avi files in to flv. Im then passing metadata using yamdi.
However, this process is very timely as im converting loads of avi files at a time.Im looking for a script, or a way where I can execute one command/script and which will convert all files in the directory I specify, then run those converted files through yamdi.Im guessing it would be some sort of loop, and then changing for each file?
View 6 Replies
View Related
Feb 5, 2010
when we do enter on a folder it take some time for loading the folder depending on the no of entries in the folder . If the folder has more entries it take more time to load and if less no of entries then correspondingly less time . the delay in loading the folder varies due to reading of the folder entries in advance . SO what i want to know is that what is the MAX no of entries read in advance while opening a folder in linux and also how can we calculate this
View 4 Replies
View Related
Mar 24, 2011
I'm trying to make a shell script that will list the 50 newest files in a directory with several subdirectories in. I've been trying with the find-command with no luck and now I've figured I should probably use ls. The problem is when I do "ls -lRt | head -50" it will do 1 directory at the time. It will not first make the full list and then sort it. This will display all items in first directory, sorted, then the newest directory will be sorted and displayed. So I figured I have to sort the whole process of ls before I limit the head. So this is where I am at now: ls -lRt | sort <something clever here> | head -50
Only doing a "|sort|" will sort it by name if I understand it right and I don't know how to solve it. Here's also my first attempt if that is of any interrest or help, this was limited by the change status time of files (so some lists got very large). These lists dit not get sorted by time and I could not find any way to do so.find $ftpDir -ctime $time -type f -print > $ftpFileLsAny help on this would be appreciated since I'm sort of stuck now. After reading manuals for all the options I can think of and still there's just a big blur in my head..
View 12 Replies
View Related
Feb 15, 2010
I can't open the cd drive because Knoppix is using it. Is there a way round this?
View 2 Replies
View Related
Mar 20, 2011
My hostmachine is Windows, and install Ubuntu on a virtual machine. I developed some program on Ubuntu. Suppose I want to transfer these files to a folder in Windows. How to find and get these files, which logically are stored in the virtual machine.
View 2 Replies
View Related
May 8, 2011
I own a motorcycle which has a power commander unit installed. Basicaly its a computer interface unit that allows us to install/load up air/fuel ratio's (maps) and do fine tuning via a laptop or computer.
So, now that I have made the move to Linux, I need to look into making the software program function with Linux. I am assuming that the software is designed for Windows, and probably a version for Mac as well.
Is there a way I can get the program modified to run within the Linux/Ubuntu OS?? The initial error I get when I attempt to install the program is ;
Archive: /home/gchalifoux/Downloads/pciisoft2000.exe
[/home/gchalifoux/Downloads/pciisoft2000.exe]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
[Code]....
View 2 Replies
View Related
Mar 18, 2009
I'm trying to find a proper command to move a certain set of files according to date/time range. I am thinking that the command should be something like:
Code:
ls -l | grep 'date/time range' | mv /folder
View 6 Replies
View Related
Aug 4, 2010
I have created some text executable files and put them on my desktop. In the way of background I created them in gedit. Then used chmod ugo+x (filename) to make them executable. One of them is a ping test to see if a printer is on. Text in file = ping 192.168.1.5. Others are to turn my laptop touchpad on and off. text in file = sudo modprobe -i psmouse.
I have 2 questions about executable text files:
- When I click on an executable text file it present a window with 4 options (Run in terminal, display, cancel, run). Can I set a parameter or do something else so it just runs in terminal? I know I can set an option in Nautilus to run them but when I select run nothing seems to happen. In addition I would want to set this option on a case by case basis not globally in Nautilus. If there is an option or flag where it would run this file in terminal I would use it on my printer ping test.
- When I click on these executable text files to turn my touchpad on and off, the text within the file uses the sudo command so that requires that I input my password. After I click on either of these files a window appears with the 4 options (Run in terminal, display, cancel, run). I select run in terminal, a terminal window opens and requests my password. Subsequent to inputting my password the file executes fine.
Is there a way to set a parameter or do something else so I don't need to not only select the run in terminal option from (run in terminal, display, cancel, run) but also not to enter my password?
View 4 Replies
View Related
Jun 26, 2010
I have downloaded an update of mozilla firefox but don't know how to unzip it. Do I download it to disc(hard drive) or do I download to xarchiver? Then how do I unzip it.Do I have to unzip all files the same way?
View 7 Replies
View Related
Mar 27, 2011
Ok so've installed ubuntu. Looks great, but there's one problem: fan is really noisy, all the time, even when I'm not running any app...
I've changed the power preferences, and activated the option: "Spin down hard disks when possible", but didn't have any effect.
I have a toshipa satellite L-500, and used to use toshiba eco utility for windows but they don't make that for ubuntu.
View 7 Replies
View Related
Dec 2, 2010
It's the second time I've noticed this
~# /etc/init.d/sabnzbdplus restart
mktemp: failed to create file via template `/tmp/sabnzbdplus.XXXXXXXXXX': Read-only file system
/etc/init.d/sabnzbdplus: line 94: $TMPFILE: ambiguous redirect
Stopping SABnzbd+ binary newsgrabber:No process in pidfile '--retry' found running; none killed.
failed!
View 14 Replies
View Related
Oct 26, 2010
I've been trying to set up a FTP server for some quite some time and i keep running into problems. I'm trying to set it up via gadmin- proftpd but even with that i cant get it to run. Can anyone point me towards a good how-to or just help me out? I'm kinda new to Linux and this is my first go at servers so i really have no clue here.
View 9 Replies
View Related
Sep 25, 2010
I have the latest release of Lucid Lynx installed. I want to try out audio recording on Linux so I want to know if it's possible to use a real time kernel with Lucid. So I installed the 2.6.31 real time kernel. It shows up in GRUB, but when I boot it gives me the message:
mounting none on /dev failed No such device
It then takes me to the login screen, and once I enter my password it just takes me back to the login.
View 1 Replies
View Related
Jul 1, 2010
I want to create 2 cron jobs daily
1st cron: Every day by 13(1pm) I want to stop the httpd service
2nd cron: Every day by 13:30(1.30pm) I want to start the httpd service
I tried but only 1 cron job can able to run at a time.
View 7 Replies
View Related
Oct 29, 2010
I'd like to change a files modification date "only" without changing the time. I'm aware of the 'touch' command but is seems like it only allows changing both the date and time, and not one of them. Any ideas on an easy way to change a file's modification date without also changing its time? (I have a long list of files and thus would like to run one to command to change them all)Example: Change a file's (month) timestamp from "2010-09-23 11:59:23" to "2010-10-23 11:59:23"Background: I accidentally set the wrong month on my camera and ended up with all photos having a modification timestamp with the wrong month.
View 3 Replies
View Related