hi, first congratulations on the nice forum!
Can anybody write script, which can make copy of some or all files of the current directory in new directory (called "backups", which must be made in the current directory, if it's not already exist). And bring out a massage (report) with the count... (7 Replies)
Hi,
root@server] df -h
121G 14G 101G 12% /home
147G 126G 14G 91% /backup
We having our site files and images are storing in
/backup/home/user/files/ through symbolic link created in /home directory pointing in /backup directory as following.
root@server] cd /home... (1 Reply)
I am very new to Linux/Unix. Kindly assist the following:
I wish to write a bash shell script called how_many_to_go that calculates and prints the number of days, hours, minutes and/or seconds until the end of the current month (based on the output of the date command).
Do ... (2 Replies)
Hi All
I am a new in scripting language and I would like help for you guys
I would like to create a file named constant.h and search into all files *.m in specific directory for a reg-exp @"LBL_]+" exp: @"LBL_75847" , and write those matchs to constant.h if there are not written (no... (15 Replies)
i'm trying to write a bash script that that will automatically extract zip files after the download.
i writed this script
#!/bin/bash
wget -c https://github.com/RonGokhle/kernel-downloader/zipball/master
CURRENDIR=/home/kernel-downloader
cd $CURRENDIR
rm $CURRENDIR/zipfiles 2>/dev/null
... (2 Replies)
Hi All,
I am unable to write the script for the below requirement.
Requirement:
Main table dir_ancillary table contain three column "dir_ancillary.table_name"," dir_ancillary.text_file_name ", "dir_ancillary.Include" .
This dir_ancillary contain undefined tables in the column... (2 Replies)
Hi Team
I am trying to put together a nice small script to mount my lvm snapshot
Here are my objectives
1 Check whether snapshot is currently mounted. If so echo umount snapshot and exit from the script.
2 If it's not mounting, check whether the mount point exist, If so, create lvm... (0 Replies)
Hello experts, I need help writing individual files from a data matrix, with each new file being written every time there is a blank line:
From this
cat file.txt
col1 col2 col3
6661 7771 8881
6661 7771 8881
6661 7771 8881
col1 col2 col3
3451 2221 1221... (6 Replies)
Hello guys, I need some help. I am new in bash and I don't know how to automate the following script.
head -2 out1 > 1.fasta
sed ‘1,2 d' out1 > out2
rm out1
head -2 out2 > 2.fasta
sed ‘1,2 d' out2 > out1
rm out2
head -2 out2 > 3.fasta
sed '1,2 d' out2 > out1
rm out2
.......... (3 Replies)
How would I write a value to a physical memory address?
I was able to read a physical memory address (for example, 0x400) using this line:
dd if=/dev/mem count=4 bs=1 skip=$(( 0x400 ))
But I get an error:
dd: 'standard input': cannot skip to specified offset
when I try to write using... (1 Reply)
Discussion started by: rabrandt
1 Replies
LEARN ABOUT DEBIAN
pegasus-invoke
PEGASUS-INVOKE(1)PEGASUS-INVOKE(1)NAME
pegasus-invoke - invokes a command from a file
SYNOPSIS
pegasus-invoke ( app | @fn ) [ arg | *@fn [..]]
DESCRIPTION
The pegasus-invoke tool invokes a single application with as many arguments as your Unix permits (128k characters for Linux). Arguments are
come from two places, either the command-line as regular arguments, or from a special file, which contains one argument per line.
The pegasus-invoke tool became necessary to work around the 4k argument length limit in Condor. It also permits to use arguments inside
argument files without worry about shell, Condor or Globus escape necessities. All argument file contents are passed as is, one line per
argument entry.
ARGUMENTS -d
This option increases the debug level. Currently, only debugging or no debugging is distinguished. Debug message are generated on
stdout . By default, debugging is disabled.
-h
This option prints the help message and exits the program.
--
This option stops any option processing. It may only be necessary, if the application is stated on the command-line, and starts with a
hyphen itself.The first argument must either be the application to run as fully-specified location (either absolute, or relative to
current wd), or a file containing one argument per line. The PATH environment variables is not used to locate an application.
Subsequent arguments may either be specified explicitely on the commandline. Any argument that starts with an at (@) sign is taken to
introduce a filename, which contains one argument per line. The textual file may contain long arguments and filenames. However, Unices
still impose limits on the maximum length of a directory name, and the maximum length of a file name. These lengths are not checked,
because pegasus-invoke is oblivious of the application (e.g. what argument is a filename, and what argument is a mere string resembling
a filename).
RETURN VALUE
The pegasus-invoke tool returns 127, if it was unable to find the application. It returns 126, if there was a problem parsing the file. All
other exit status, including 126 and 127, come from the application.
SEE ALSO pegasus-kickstart(1)EXAMPLE
$ echo "/bin/date" > X
$ echo "-Isec" >> X
$ pegasus-invoke @X
2005-11-03T15:07:01-0600
Recursion is also possible. Please mind not to use circular inclusions. Also note how duplicating the initial at (@) sign will escape its
meaning as inclusion symbol.
$ cat test.3
This is test 3
$ cat test.2
/bin/echo
@test.3
@@test.3
$ pegasus-invoke @test.2
This is test 3 @test.3
RESTRICTIONS
While the arguments themselves may contain files with arguments to parse, starting with an at (@) sign as before, the maximum recursion
limit is 32 levels of inclusions. It is not possible (yet) to use stdin as source of inclusion.
HISTORY
As you may have noticed, pegasus-invoke had the name invoke in previous incantations. We are slowly moving to the new name to avoid clashes
in a larger OS installation setting. However, there is no pertinent need to change the internal name, too, as no name clashes are expected.
AUTHORS
Mike Wilde <wilde at mcs dot anl dot gov>
Jens-S. Vockler <voeckler at isi dot edu>
Pegasus http://pegasus.isi.edu/
05/24/2012 PEGASUS-INVOKE(1)