General :: Run Same Script In Parallel From On Session?
Mar 17, 2010
I have a shell script to refresh some databases. Currently I open 5 sessions and to execute the five scripts.
Today, as test, I tried to see if I could run two refreshes simultaneously from one session using the '&':
. /refresh.ksh db1 &
. /refresh.ksh db2
The first one ran and the second one started only after the first one was finished. Could it be that the script refresh.ksh contains many commands and those are not pushed to the background? If so, what's the best approach to getting 5 db's refresh simultanously from on session?
View 6 Replies
ADVERTISEMENT
Jul 28, 2011
While converting some images using ImageMagick, I noticed a somewhat strange effect. Using xargs was significantly slower than a standard for loop. Since xargs limited to a single process should act like a for loop, I tested that, and found it to be about the same.
Thus, we have this demonstration.
Quad core (AMD Athalon X4, 2.6GHz)
Working entirely on a tempfs (16g ram total; no swap)
No other major loads
[Code]....
View 1 Replies
View Related
Sep 1, 2010
I do not know much about parallel computing, but I do have access to a few cpus.I am trying to write a program compatible for multiple cpus, but to do it, I need to ensure unique directories. I have figured out that the time of creation, process id, and cpu id form a unique combination I can use to name files (up to the degree of accuracy of the internal timer).Anyway, I am using perl. I know how to find the process id and I know I can get the time pretty easily, but as I said, I do not know much about hardware or parallel computing. All I need is a way to identify each cpu in the system and I am set for half of my program (the other half is significantly more straightforward and is mainly about text parsing.)
So anyway using terminal, perl, etc., I could access this identification? Or could someone at least tell me the name of what I am looking for? I have seen the words "ip" "MAC" "hostid" and a bunch of other "id" things come up in my googling, but I really cannot figure out which is the one relevent to me
View 6 Replies
View Related
Oct 1, 2010
I would like to add a driver to /dev which can light the LEDS using the parallel port. Where I should start from. I am trying to learn device driver programming, which is quite difficult for me now.
View 8 Replies
View Related
Mar 25, 2010
I've got a fresh install of ubuntu 9.10 on a fresh disk and everything was going perfectly. I bought a Usb=>parallel cable to connect my old parallel port printer.When I try and print, sometimes it works and sometimes it doesn't. Sometimes the job will go to the print queue and then nothing happens, in this case if I unplug and replug the usb cable a couple of times it usually prints the document. Sometimes the job doesn't show up in the print queue at all and sometimes it prints the document with no problems.
Whenever I use lsusb, I never see the printer in the list of attached usb devices (even when the printer is printing!). Apart from root hubs, the only two devices ever listed with lsusb are my mouse and scanner.
View 2 Replies
View Related
Dec 13, 2010
I was trying out the parallel port communication on RHEL 6 but found it not working:
#echo hello > /dev/parport0
write error :Invalid argument".
#ll > "/dev/lp0"
/dev/lp0:No such device or address
View 2 Replies
View Related
Apr 22, 2010
I have been trying out serial and parallel data communication on Fedora 13 Beta. I can easily see the list of serial ports through:
Code:
setserial -g /dev/ttyS[0-3]
And can also write some data through:
Code:
ll > /dev/ttyS0
But I am unable to see parallel ports
I can see something like:
Code:
/dev/parport0
But when I try out:
ll > /dev/parport0
It throws error.
View 3 Replies
View Related
May 11, 2010
Info about session timeout.
I use tmout = 15 min in my /etc/profile (along with readonly tmout). i have some issues i need to address, looking for ideas.
1. what is considered a idle "session" ?
2. if i & a process to the background and do nothing is this a idle session?
3. if user uses su to a higher level, are there now two sessions? is the tmout for user suspended until su user time outs or leaves su session?
4. i have some users who will run long sql queries. is there a workaround to have the session remain active until process has finished?
View 3 Replies
View Related
Mar 17, 2011
Notion of robbed task multiprogramming. I'm looking for information on this concept to better understand its application in parallel
View 1 Replies
View Related
Apr 12, 2010
hypothetically speaking, can i write a script in which a telnet session is opened and then some more commands are forwarded to that session?
View 4 Replies
View Related
Nov 10, 2010
I have a very bad attempt at hashing the components of an tcp session to assign/locate the session in a hash table bucket. I am pretty sure that it has a very high collision rate and when there are a very large number of tcp sessions my application is having to search a long linked list to find the session within the bucket.
All the hashing functions I have found take a single string input where I need to input several integers and hash them into a single result. My guess is that any real hashing function is going to produce better results than what I am currently doing.
[Code]...
View 2 Replies
View Related
Nov 1, 2010
Is there a session manager I can use with 10.10? I would like to try Openbox but am not sure how to select it as a startup session. I would like to be able to choose between kde, gnome and openbox.
View 1 Replies
View Related
May 14, 2010
My Operating system is Ubuntu 10-4 that I have just installed.
View 6 Replies
View Related
Jan 22, 2010
I am putting together some new systems for my customer and I'm having some trouble with a script that we use to back up files to a DVD R. The problem is that I can't write a 2nd session to the DVD unless I eject the disk and reload it. The drives are slimline type drives, Sony BD-5730S and Teac DV-W28S-V93, so they won't reload without human intervention. Opsys is CentOS 5.4 or RHEL 5.4. I've tried both AMD and Intel based mother boards. If i try this on Fedora 11 or 12 it works fine. This works on IDE attached drives but not a SATA attached drives. Fedora appears to use something called genisoimage instead of mkisofs. I can't get genisoimage to run on CentOS or RHEL.
Here's the code to setup the test files:
rm -f /tmp/BDtest/*
mkdir /tmp/BDtest
dd if=/dev/zero of=/tmp/BDtest/blank.iso bs=10M count=1
for NUM in {1..160}
[Code].....
View 2 Replies
View Related
Jun 13, 2011
OS : Oracle Enter Prise Linux 6 (equivalent to RedHat)
I am in process to install oracle 10g on said OS.My process fails and after digging up , I came to know that some of the oracle libraries are compiled on 32-bit architecture and it require glibc-32 bit . also it require for gcc-32 bit.
Now i have downloaded all the required rpm for gcc-32bit . when I try to install glibc and its dependencies , it gives me error that newer version already exist.
How can I install , Gcc-32bit(libgc, libstd-i386 etc) in parallel or standalone?
View 3 Replies
View Related
Jun 30, 2010
I am currently in a project to set up an LTSP server with 10 thin clients. I am using Ubuntu 9.10 (Karmic).
Installing server and booting clients are working fine. Now, according to the need, I have to restrict user session numbers and allow resuming previous user session.
I have achieved to do the first one, but still could not able to setup the second one. As per requirement, if some thin can have power failure, the same session should be restored back. I am confused here, if I need to focus on saving xsessions or saving gnome sessions. I am looking for a concrete solution as I am running out of time.
View 1 Replies
View Related
Apr 11, 2010
The following message comes up when I boot up: Logging in user Warning: Cannot open ConsoleKit session: Unable to open session: Launch helper exited with unknown return code 0. When I press OK, the system completes the start up and everything looks normal. But when I try to connect to internet, I get the following message:
KNetworkManager cannot start because the installation is misconfigured. System DBUS policy does not allow it to provide user settings; contact your system administrator or distribution. KNetworkManager will not start automatically in future. If I reboot the system, I logg in successfully. So far the problem has appeared approximately upon every second time I boot up. Rebooting the system seems to take care of it.
Don't know what info is of interest. I'm using
Opensuse 11.2
KDE 4.4.2 (Factory)
After upgrade from 4.4.1 to 4.4.2 it worked fine for a week or so.
View 9 Replies
View Related
May 13, 2010
I do a clean install of slackware64 13.1 beta1 with KDE and switch default runlevel to 4 in /etc/inittab.
I try to login in kdm, I always come back to the login....
I try this with default runlevel 3 and an .xinitrc with "ck-launch-session startkde" .. works without problems, so I switch back to default runlevel 4, now i can login and only get the error "Cannot open ConsoleKit session: Unable to open session..."
Here are some logs
syslog
Code:
Code:
View 2 Replies
View Related
Dec 16, 2010
I was using ubuntu before i over to fedora, in ubuntu i had the commandline "hd + nameOfFile". what is the parallel command in fedora??
View 2 Replies
View Related
Apr 6, 2011
I am having a pc at my home running CentOS 5.5 and connected to the internet can i take session of it through PUTTY or something else sitting somewhere else and connected to the internet..
View 7 Replies
View Related
Feb 25, 2010
how to log out an idle session. I was using putty to connect to a Debian machine to edit my .profile file. I got disconnected. Ideally I would want to log back into my own session. If anyone can let me know how to do it, please? If not I want to open a new session and then log off my first session (see below pts/0).
[Code].....
View 2 Replies
View Related
Dec 7, 2009
I am using SSH to access a UNIX running red had Linux. If possible I would like to invoke the GUI on my connection. Is there a way I could do that e.g by exporting the display or running X-server.
View 2 Replies
View Related
Dec 1, 2009
Whenever the user login into shell through terminal.i would like to monitor their activity by script command and save the file into /tmp directory. and also when they leave from the session automatically send to my mail id. is it possible?
View 2 Replies
View Related
Feb 18, 2011
I want use two computer to run OpenFOAM or Fluent software.These two computers are connected via a cross cable. I have access to another by "ssh maysam@192.168.1.1" OR "ssh 192.168.1.1" The problem is i should have access to another PC by "ssh maysam-desktop" command which can run parallel. maysam-desktop is name of anothe PC and maysam is name of its user.
View 1 Replies
View Related
Mar 2, 2011
I'd like to connect a parallel port printer to my new desktop and have got a Connectland C36 cable that shows up as: Bus 003 Device 002: ID 067b:2305 Prolific Technology, Inc. PL2305 Parallel Port.I've tried the URI /dev/usb/lp0 but I don't mange to set the printer working. May I need any driver?
View 8 Replies
View Related
Feb 23, 2010
My new Shuttle runs Debian fine, but like most new systems, the old serial and parallel ports are long gone. I have no problems with the serial port - there is a Sourceforge driver to use with most PL-2303 type USB to Serial adapter cables. But, I am having trouble googling up the USB to Parallel connection. There are no lack of USB/Parallel cables, but all that I have found come with canned software for Windows and only for connecting a printer. I have several non-printer devices that connect via the P-Port that I access using a Perl driver from CPAN. Anybody know of an open source *nix driver for any particular USB/PP cable? Or had any experience in moving from the straight PP to a USB/PP connection to a non-printer device?
View 1 Replies
View Related
Oct 1, 2010
I have a bash script with a line like this in it:
Code: mysqldump -uusername -ppassword --master-data=2 --single-transaction --quick --add-drop-table --add-drop-database somedatabase | gzip > ./somedatabase.sql.gz The problem is, I have about 16 databases I'm dumping like this, but it's dumping
[Code]....
So, does putting in a & after a command work in a bash script at all? The thought was, if I want to run them in parallel, should I do this?
Code: #!/bin/bash
./scripts/dumpthis &
./scripts/dumpthat &
./scripts/dumpsomemore & Where "dumpthis" is just the first snippet of code above.
View 3 Replies
View Related
Jan 10, 2010
I have been trying to install an old HP Laserjet 4100 printer using an USB to Parallel Cable (Cables Limited USB IEEE 1284 printer cable). The driver provided with the cable worked on windows XP and I was able to print. The cable is also sold as supporting Linux but it seems that is was tested for fedora core 4 and Moschip Support Team wrote me that ubuntu 9.04 was not supported. When trying to install the driver (makefile) I got a lot of errors (see annex) . I have a System 76 PC with ubuntu 9.04, kernel 2.6.28-17-generic, intel(R) Core(TM). Whwn connected the printer is not recognized.
How to install the cable ? Or any trade / model of printer cable really able to work with ubuntu ?
Additional information: lsusboutput, linux dirver file list, errors whwn carrying out the make and dmesg output
Additional information: lsusb indicates Bus 002 Device 002: ID 9710:7705 MosChip Semiconductor Printer USB to Parallel
The linux driver files are:
Errors when doing make:
View 7 Replies
View Related
May 6, 2011
I have 5 HP workstation connected with HP ML370 servers. My software "Synopsys" is node locked (run only on server)the problem is that when i run simulation its take too much time. I want to share server load on all 5 workstations on my network.how to utilize these workstations resources e.g RAM, CPU etc...
View 8 Replies
View Related
Nov 27, 2010
I use an application called redbutton-browser to access some of the things available on the redbutton digital tv channels. It compiles fine if I use a simple make but fails if I try to run parallel jobs with make -j4. I'd like some help altering the Makefile so that it does a few commands sequentially before it does the rest of the Makefile in parallel.
The relevant bit of the Makefile looks like this:
Code:
ISO13522-MHEG-5.c:xsd2c.c ISO13522-MHEG-5.xsd add_instance_vars.conf add_rtti.conf
make xsd2c
./xsd2c ISO13522-MHEG-5.xsd
./add_instance_vars ISO13522-MHEG-5.c ISO13522-MHEG-5.h
./add_rtti ISO13522-MHEG-5.c > rtti.h
[Code]....
View 7 Replies
View Related