General :: Set The SGE Job Execution Order?

Jun 22, 2010

I am trying to write a script to set the SGE job execution order. I named each job with 'job1', 'job2' and 'job3'. I want my script to do: When 'job1' execution is complete, 'job2' is executed; when both 'job1' and 'job2' are complete, 'job3' is executed.

First, I tried this following script and it worked well:

qsub -N job1 # includes "mv file_name1 file_name2"
qsub -N job2 -hold_jid job1 # includes "mv file_name2


View 7 Replies


Ubuntu :: Change Execution Order Of Startup Apps?

Aug 5, 2011

How do you change the order of execution of gnome startup apps?(System - Preferences - Startup Applications) does not seem to have any way to do it.I saw an archived post ( which offered a couple of ideas... (1) mucking around with /etc/rc2.d/ -- but that seems to be only system-level apps, not user apps; or (2) going to (System - Preferences - Sessions) and mucking around in there -- but I don't seem to have that menu on my system (10.04 LTS running as a guest in vmware player 3.1)I just want vmware-user to run before my gnome-terminals so that the desktop is resized before the terminals run.

View 1 Replies View Related

General :: Use Sort Command For Its Ascending Order And Descending Order?

Aug 18, 2010

in my text file of 5 columns 2 column is in DDMMYYYY format. (ie DATE OF BIRTH). how to use sort command for its ascending order and descending order.

Is the same can be use for the date format YYYYMMDD ?

View 3 Replies View Related

General :: Execution Time In A C Program ?

Jan 10, 2010

I need to find out the processing or operating time in milliseconds or in nanoseconds for the instructions or for the whole process!

for eg :

I need to calculate the time taken to execute :

And i dont want the time for whole program :

View 4 Replies View Related

General :: Repeating The Command After One Execution?

Oct 13, 2010

I have seen command like $rm aa dd cc bb ee then something like $ >> zz // it removes zz also Where aa dd cc bb ee zz are the files in my directory. Do not know exactly.

View 6 Replies View Related

General :: Script Execution Flow Stopped?

Apr 1, 2010

Now my script is able to start server, But I am still have some problem with my script. When the start server command is executed, the control does not pass the line and does not execute further of that line.what is the problem and how can I get smooth execution of the my script. My Script:

SUBIT="su - adminuser -c "


View 1 Replies View Related

General :: Chroot For Unsecure Programs Execution?

May 13, 2010

I have never set-up a chroot-jailed environment before and I am afraid I need some help to do it well.To explain shortly what this is all about: I have a webserver to which users send python scripts to process various files that are stored on the server (the system is for Research purpose).Everyday a cron job starts the execution of the uploaded scripts via a command of this kind: /usr/bin/python script_file.pyAll of this is really insecure and I would like to create a jail in which I would copy the necessary files (uploaded scripts, files to process, python binary and dependencies).

I already looked at various utilities to create jails but none of them seemed up-to-date or were lacking solid documentation (ie. the links proposed in How can I run an untrusted python script)Could anyone guide me to a viable solution to my problem? like a working example of a script that creates a jail, put some files in it and executes a python script?

View 2 Replies View Related

General :: Measure Script Execution Time?

Jan 4, 2011

In bash shell, is there a simple way for me to monitor the time taken to run a script and output the time taken?

View 1 Replies View Related

General :: Remove Execution Permission For Users?

Apr 2, 2010

I am using CentOS release 5.4 ( 2.6.18-164.9.1.el5xen ) and created an HPC cluster by using NIS ( for user authentication ) NFS ( as file system ) and mpich1 as parallel compilers and utilities and TORQUE as job scheduler. I want to make sure all users should use scheduler for job submission and should not submit the job directly ( qsub ).

I want to prevent all users from executing executable files created by self , from its home directory .

Suppose if a user create an executable a.out and if he tries to execute by ./a.out it should display an error.We should also allow users to execute normal user level linux commands .How can I implement such a set up in my environment

View 5 Replies View Related

General :: Receive Emails About A Cronjob Execution?

Jun 15, 2011

how I can receive emails about a cronjob execution or where to go to read about that? I am using CentOS 5.4.

View 2 Replies View Related

General :: A Shall Script For Remote Shell Execution?

Mar 26, 2011

i need to take the backup some folders encryption formate with password i used gpg encription in the script but it is not taking the password it throos errorthe syntax is#!/bin/bashtar -cvzf test.tar.gz target ; echo "test" | gpg -c test.tar.gz --stdin

View 3 Replies View Related

General :: Decrease The Cpu Load During Qemu Execution?

Aug 8, 2011

is there any way to decrease the cpu load during qemu execution?

View 5 Replies View Related

General :: Virtual Addresses Accessed By An App During Its Execution?

Mar 17, 2010

Get the list of virtual addresses being accessed by any application during its execution time. I don't want the complete memory map but just the pages which were accessed during an application's execution?

View 2 Replies View Related

General :: Wget Is Creating File For Each Execution?

Dec 1, 2010

I am calling a service using http post through wget, the command is successfully executing but for each execution its creating a file and saving variable names n data n it. I want to execute this command without creation of a file. Would anyone suggest me what needs to be done in this regard.

My command:
wget --post-data 'var1=99&var2=200'
For every execution, its creating the files with names:


View 1 Replies View Related

General :: Get Virtual Addresses Accessed By An Application During Its Execution?

Mar 17, 2010

How to get the list of virtual addresses being accessed by any application during its execution time. I don't want the complete memory map but just the pages which were accessed during an application's execution?

View 2 Replies View Related

General :: Shell Script Execution On Double Click?

Feb 27, 2010

I could run the script from terminal. My script invokes some installation and works fine.But my wish is that end-user should double click the sh script and it should run.But how? I got few links - but none was of was quite helpful

View 6 Replies View Related

General :: How To Loop A Script Execution With Param From A Text File

Aug 14, 2010

I need to run ./pythonScript keyword one time for each keyword in a text file, how can I do this from a gnome terminal? (without having to modify the pythonScript)

pseudo code:

for each keyword in file:
./pythonScript keyword
waitfor(pythonScript to finish)

View 3 Replies View Related

General :: Background Process Execution Hangs Console And Ip Communication?

Feb 9, 2011

I have 3 processes to be executed in a particular sequence.


The requirement is that all the processes should run as background processes.

ProcessA talks to ProcessB and ProcessC using sockets.
ProcessB talsk to ProcessA only using sockets.
ProcessC talsk to ProcessA only using sockets.


View 3 Replies View Related

General :: Free Online Server To Upload Program For Execution

Jan 17, 2011

I am outstation and having laptop with windows and internet connection. I want to check one small program on linux. kindly tell if some free linux server is available on internet where I can upload my program, compile and execute. The program is generic and there is no restrictions regarding linux version.

View 2 Replies View Related

General :: Script Execution Failed - Input String Was Not In A Correct Format

May 2, 2011

I have here a Network Monitoring tool that should monitor the Apache (httpd) 2.0 on CentOS 4.3, but I didnt have any background in using linux, I tried CentOS 5.5 with Apache (httpd)2.2 and it works, but whenever I tried it on Centos 4.3, it doesnt work at all, it has an error Testing on node localhost.localdomain: failed with Undefined status, Script execution failed. Input string was not in a correct format.

View 10 Replies View Related

General :: SSH Command Mode - Flow Of Execution Returns To Bash Shell

Aug 13, 2009

I want to use ssh to execute a command and to wait endlessly to log everything (in file) that comes as a stream of the connected server. But unfortunately, in the manual its written "If command is specified, it is executed on the remote host instead of a login shell"

So what happens is that when I specify my command:
ssh user@server "my_command"

It executed the command and the flow of execution returns to bash shell. So basically my session ends right after the command is executed. This happens only in case I specify command in the command line. If I login into ssh manually and then type "my_command", then the session doesn't end. I want the ssh not to exit, because after "my_command" executes, I want to capture everything in the session.

View 3 Replies View Related

General :: Bash Command History Update Before Execution Of Command

Jun 7, 2010

Bash's command history is great, especially it is useful when adding the history -a command to the COMMAND_PROMPT.However, I'm wondering if there is a way to log the commands to a file as soon as the Return key is pressed, e.g. before starting the command and not on completion of the command (using the COMMAND_PROMPT option would save the command once the prompt is there again).

I read about auditing programs like snoopy and session recorder like script but I thought they're already too complex for the simple question I have. I guess that deactivating that script logs all the output of the command would lead already in the right direction but isn't there a quicker way to solve that probelm?

View 1 Replies View Related

General :: Remote Command Execution Via SSH And Newgrp Command?

May 9, 2011

Up until now I've been using plink to remotely compile a project I'm working on. But recently the administrator from the remote server updated the distribution and messed up some configurations. My project has a lot of scripts written for tc shell (tcsh), and now the default shell is bash. There is no way to change this. Another problem is that now I need to run newgrp to change my default user group.

So... to work around this problem I've changed my .bashrc to run newgrp and then tcsh. If I do a normal connection using SSH, everything works as expected, but when using plink, or SSH to remotely execute commands, the shell gets stuck on the newgrp command. I think it's because both applications need a return value from newgrp to send the command I need to execute. Remotely running scripts that call a shell also get stuck like newgrp (newgrp also opens a new shell and that's why it gets stuck) my .bashrc is as follows:


user_grp=`id -g`
if [ $user_grp != 4919 ]; then
newgrp new_group_id


View 4 Replies View Related

General :: Only Execute 2nd Command On Successufl Execution Of 1st Command?

Aug 19, 2009

I have a script which builds a project and then runs junit tests. However, if the build fails, the junit tests fail with the same error message.Therefore the command which runs the junit tests should only be executed if the build was successful.

View 3 Replies View Related

General :: Does Order Of Command Options?

Feb 7, 2010

Does the order of command options matter?

View 4 Replies View Related

General :: What Order To Get PC Working On Internet?

Apr 1, 2011

I have installed Suse Linux Enterprise Server 11 onto the box that I am using as a server. Connected to the "server" is a Windows Vista PC.Beyond installing the O/S with all the options I need - I am stuck. The Windows PC will not connect to the internet whereas the Linux server will.What do I need to setup and in what order to get the pc working on the internet?

The path that I think I need to take is to disable dhcp on the broadband router and setup the server as dhcp (how and what); setup the rules in the firewall (how and what rules?) and setup dns and dhcp (how and what?)

View 14 Replies View Related

General :: Change Default Boot Order In 10.04?

Jan 13, 2011

How can I change default boot order in Ubuntu 10.04 from Ubuntu to Windows7? However, I already checked sudo gedit /etc/default/grub and modify the grub file to be GRUB_DEFAULT=4 and update the grup sudo update-grub I even install graph software to re order the book sudo startupmanager But still after restart the default choose for boot is Ubuntu ...

P.S: I am using Ubuntu 10.04 with grub version 1.98

View 2 Replies View Related

General :: Win7 - Multiple OS Install Order?

Jan 20, 2011

I am currently running Windows 7. I want to install the latest ubuntu (which I know I can just install right on top of &) but I also want to install FreeBSD and either Windows Server 2003 (maybe 2008 if i can get my hands on it). What would be the best way to go about installing these 3 OSes next to W7? I was also thinking about just upgrading my hard drive to a 2TB internal anyways, so waiting to get that is also an option, then installing everything in the "best" order. I also want to try installing Mac sometime too once I upgrade hardware.

View 2 Replies View Related

General :: Rename Images So They Burn To CD In Order

May 7, 2011

I have a bunch of images named:

317 (2)a.jpg

In my file browser (Nautilus), they are displayed in the correct numerical order. However, in Brasero when I order them, it orders them strangely (correctly, but not the way I want them to). They order like this:



Can someone recommend a naming convention to rename all these files to so they are in the correct order (for example, cameras use IMG_xxxx.JPG, which is nice)?
Can someone give me a Linux command line rename command for these files so they are renamed to display and therefore burn in the correct order?

They're standard JPEG files, so ordering them by the date in the EXIF data might work. I just need the correct commands, or GUI - I don't mind - to get them in order.

View 3 Replies View Related

General :: In What Order Are Files And Directories Copied When Using Cp -R?

Jun 26, 2011

If I execute the following command:
cp -R /myfiles /mydestination

If myfiles contains several sub-directories and files, in what order will they be copied? For example, directories might be named 0123a, 9993c, myfolder, xfolder.

They are not copied in alphabetical order OR in date order OR in the order they appear when using a standard ls command as far as I can tell, so what actually does determine the order?

I am trying to determine the order that the cp command uses in order to determine how far along my copy command made it before it stopped. For example, I was hoping to be able to determine it copied 3 of the 4 directories successfully.

View 1 Replies View Related

Copyrights 2005-15, All rights reserved