Sponsored Content
Top Forums Shell Programming and Scripting I need to do a work to my job, but i m new in script shell, someone can help with this.. Post 302407485 by strshel on Thursday 25th of March 2010 02:33:28 PM
Old 03-25-2010
I could be wrong, but that sounds a lot more like homework than a task delegated by a boss.U are right, a could say nothing about, but thats true, a need some help, i just need understand some " function" with script shells, its a help..

---------- Post updated at 07:33 PM ---------- Previous update was at 07:32 PM ----------

thanks to Tony
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Multiple instances of the job in shell script.

Hi, Please let us know how to create a multiple instances of a job in the shell script. Thanks. Gangegowda K.G (1 Reply)
Discussion started by: Gangegowda
1 Replies

2. Shell Programming and Scripting

Cron job shell script..

Hey Guys, i was trying out a shell script which has to remove a file for every 90 mins. this is the code i came up with . $ crontab -e file1 file1 contains 30 1 * * * * rm -r /folder1/folder2/somefile.txt Now i need the cron to run for every 90 mins. the problem with this is... (8 Replies)
Discussion started by: Irishboy24
8 Replies

3. UNIX for Dummies Questions & Answers

Job Status for running shell script

Hello, I am running a shell script whose execution often takes several hours to complete. Is there way I can get some kind of status update as the job is running? Something as simple as the start and the current time stamp. Thanks, Gussi (2 Replies)
Discussion started by: Gussifinknottle
2 Replies

4. Shell Programming and Scripting

SSH shell script does not work

Hello I have a Zabbix Server were Linux kernel version 2.6.26-2-amd64 is running. now my Question how can i make a script that does: - connect with ssh to a device - get the systeminfo (but only the interfaces, mac adresses, serialnumber and Software version) - write the output in a file ... (18 Replies)
Discussion started by: Fraggy
18 Replies

5. UNIX for Dummies Questions & Answers

cron job for the created shell script

Hi am newbie for unix shell.. how to create a cron job for my already created shell script.:confused: Thanks! (1 Reply)
Discussion started by: vidhyaS
1 Replies

6. Shell Programming and Scripting

Exit Shell Script with background job

Hi all, I am trying to exit a shell script (c shell) while invoking a job (service) that must run in the background: ...... /mydir/runservice & exit ...... There are downstream jobs and scripts that need to be run, but they all 'wait' for the script to exit. The script 'hangs' and... (3 Replies)
Discussion started by: CKT_newbie88
3 Replies

7. AIX

AIX Shell script does not work

Hi. I created schell script for sending messages to some processes in AIX: #!/bin/sh BSE=/infor/ERPLN/bse BSE_TMP=/infor/ERPLN/bse/tmp export BSE BSE_TMP for i in `ps -eo pid,comm | grep bshell | cut -f 1 -d " "` do /something $i done Unfortunatelly this script does not work on... (6 Replies)
Discussion started by: giovanni
6 Replies

8. UNIX for Dummies Questions & Answers

How to work command 'cd' in shell script?

I have simple script. like that, I am working on /usr/local/src and also under src folder there is a ft folder #!/bin/ksh #!/bin/bash dirpath="/usr/local/src/ft" echo $dirpath cd $dirpath echo displays ok "/usr/local/src/ft" but that doesn't enter "ft" folder. stays in current... (4 Replies)
Discussion started by: F@NTOM
4 Replies

9. Shell Programming and Scripting

Shell script to work on dates

Hi Sir/Madam I have a file data.txt like below file_name date_of_creation x 2/10/2012 y 8/11/2010 z 11/3/2013 a 2/10/2013 b 3/10/2013 c ... (4 Replies)
Discussion started by: kumar85shiv
4 Replies

10. Shell Programming and Scripting

Need Help with a Shell Script for a Job

Hi Guys, I need your help with setting up a shell script for the following job. Please help. Encrypted file received at the SFTP server (.55 network - DMZ) from ABC company Encrypted file is passed into the internal network (.52 or .53) in one of the system and comes to Folder 'A' A script... (8 Replies)
Discussion started by: sam0912
8 Replies
condor_run(1)						      General Commands Manual						     condor_run(1)

Name
       condor_run Submit - a shell command-line as a Condor job

Synopsis
       condor_run [-u universe] "shell command"

Description
       condor_run bundles a shell command line into a Condor job and submits the job. The condor_run command waits for the Condor job to complete,
       writes the job's output to the terminal, and exits with the exit status of the Condor job. No output appears until the job completes.

       Enclose the shell command line in double quote marks, so it may be passed to condor_runwithout modification. condor_runwill not read  input
       from  the  terminal while the job executes. If the shell command line requires input, redirect the input from a file, as illustrated by the
       example

       % condor_run  "myprog < input.data"

       condor_runjobs rely on a shared file system for access to any necessary input files. The current working  directory  of	the  job  must	be
       accessible to the machine within the Condor pool where the job runs.

       Specialized environment variables may be used to specify requirements for the machine where the job may run.

       CONDOR_ARCH

	  Specifies the architecture of the required platform. Values will be the same as the  Arch machine ClassAd attribute.

       CONDOR_OPSYS

	  Specifies the operating system of the required platform. Values will be the same as the  OpSys machine ClassAd attribute.

       CONDOR_REQUIREMENTS

	  Specifies  any additional requirements for the Condor job. It is recommended that the value defined for  CONDOR_REQUIREMENTS be enclosed
	  in parenthesis.

       When one or more of these environment variables is specified, the job is submitted with:

       Requirements = $CONDOR_REQUIREMENTS && Arch == $CONDOR_ARCH && 

	 OpSys == $CONDOR_OPSYS

       Without these environment variables, the job receives the default requirements expression, which requests a machine of the same platform as
       the machine on which condor_runis executed.

       All environment variables set when condor_runis executed will be included in the environment of the Condor job.

       condor_runremoves the Condor job from the queue and deletes its temporary files, if condor_runis killed before the Condor job completes.

Options
       -u universe

	  Submit  the  job  under the specified universe. The default is vanilla. While any universe may be specified, only the vanilla, standard,
	  scheduler, and local universes result in a submit description file that may work properly.

Examples
       condor_runmay be used to compile an executable on a different platform. As an example, first set the environment variables for the required
       platform:

       % setenv CONDOR_ARCH "SUN4u"
       % setenv CONDOR_OPSYS "SOLARIS28"

       Then, use condor_runto submit the compilation as in the following three examples.

       % condor_run  "f77 -O -o myprog myprog.f"

       or

       % condor_run  "make"

       or

       % condor_run  "condor_compile cc -o myprog.condor myprog.c"

Files
       condor_runcreates  the  following  temporary  files in the user's working directory. The placeholder <pid> is replaced by the process id of
       condor_run.

       .condor_run .<pid>

	  A shell script containing the shell command line.

       .condor_submit.<pid>

	  The submit description file for the job.

       .condor_log.<pid>

	  The Condor job's log file; it is monitored by condor_run , to determine when the job exits.

       .condor_out.<pid>

	  The output of the Condor job before it is output to the terminal.

       .condor_error.<pid>

	  Any error messages for the Condor job before they are output to the terminal.

	  condor_run removes these files when the job completes. However, if condor_run fails, it is possible that these files will remain in  the
	  user's working directory, and the Condor job may remain in the queue.

General Remarks
       condor_runis  intended  for  submitting	simple shell command lines to Condor. It does not provide the full functionality of condor_submit.
       Therefore, some condor_submiterrors and system failures may not be handled correctly.

       All processes specified within the single shell command line will be executed on the single machine matched with the job. Condor  will  not
       distribute multiple processes of a command line pipe across multiple machines.

       condor_runwill  use  the  shell	specified  in the  SHELL environment variable, if one exists. Otherwise, it will use /bin/shto execute the
       shell command-line.

       By default, condor_runexpects Perl to be installed in  /usr/bin/perl . If Perl is installed in another path, ask the  Condor  administrator
       to edit the path in the condor_runscript, or explicitly call Perl from the command line:

       % perl path-to-condor/bin/condor_run  "shell-cmd"

Exit Status
       condor_runexits with a status value of 0 (zero) upon complete success. The exit status of condor_runwill be non-zero upon failure. The exit
       status in the case of a single error due to a system call will be the error number ( errno ) of the failed call.

Author
       Condor Team, University of Wisconsin-Madison

Copyright
       Copyright (C) 1990-2012 Condor Team, Computer Sciences Department, University of  Wisconsin-Madison,  Madison,  WI.  All  Rights  Reserved.
       Licensed under the Apache License, Version 2.0.

       See the Condor Version 7.8.2 Manualor http://www.condorproject.org/licensefor additional notices. condor-admin@cs.wisc.edu

								  September 2012						     condor_run(1)
All times are GMT -4. The time now is 09:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy