Hi List,
Is it possible to pass one argument to a shell program
eg) there is a shell program abc which takes one arguments
abc one
Due to some reasons I pass
abc one two
Now one,two must be considered as "one" argument to the shell programs. Any suggestions,hints are welcome.
... (3 Replies)
Hi All,
I need some help/ideas in coming up with a shell script.
Basically, the script should install 1 or 2 or 3 packages based on the input arguments.
For example, if I type in pkgscript.sh a1 a2 a3, it should install all the 3 scripts and pkgscript.sh a1 should install only a1.
If a... (3 Replies)
I have to write a C program using sys call (read, no fread) to read from shell all the parameters, without know how many are them.
I tryed in some ways, but I have no success.
Any Idea?
Can I use read to read from stdin? (1 Reply)
Hello,
I have to make a shell script doing that :
the program tests if there is an argument, if there is it checks whether this is a directory or not, If it is it opens it.
for any .c file in the directory it prints 2 lines in the screen :
the dependence line of the .o and compiler commend... (1 Reply)
1. The problem statement, all variables and given/known data:
Problem 1:
I need to create a shell script the takes three arguments and echo's out "There once was a ____that____who like to_____"
The arguments go where the blanks are.
Problemt 2:
-Do an LS and store the... (4 Replies)
Hi,
I have a shell script, when run it i get a prompt to enter arguments say 1 for doing my next task otherwise q for quit.
What I am trying to do is run the shell script with the argument passed in however it does not seem to work.
This is what I did
./test.sh 1
Instead it printed the line... (6 Replies)
Hi All,
I am using the script for creating local queue and passing the arguments while running the script as below
n=0
while
do
e=`expr $n + 3`
echo 'DEFINE QL('$e') MAXDEPTH('$6') MAXMSGL('$7') DEFPSIST('$8') '$9'' | /apps/mqm_opt/bin/runmqsc $2
n=`expr $n + 1`
done
Running the... (5 Replies)
While I am trying to check the filename/s in IF statement of a shell script (RedHat Linux 6) I am getting below error:
File check:
filename_time2=`date --date='yesterday' +%Y-%m-%d`
cd /location/of/the/files/to/copy
if
then
cp server.log-$filename_time2* ../archive/new... (5 Replies)
Discussion started by: Dip
5 Replies
LEARN ABOUT DEBIAN
ml-makedepend
ml-makedepend(1) General Commands Manual ml-makedepend(1)NAME
ml-makedepend - list files a ML program depends upon
SYNOPSIS
ml-makedepend [ DU-options ] [ -n ] [ -f makefile ] project.cm target
ml-makedepend [ DU-options ] [ -a arch ] [ -o os ] [ -f makefile ] project.cm target
DESCRIPTION
This manual page documents briefly the ml-makedepend command. This manual page was written for the Debian distribution because the origi-
nal program does not have a manual page. The ml-makedepend script is part of the SML/NJ CM (Compilation and Library Manager) that is used
to generate a list of files that a ML program depends on for use by make.
OPTIONS
A summary of options is included below.
-n ml-makedepend usually uses the make variables $(ARCH) and $(OPSYS) in the filenames for the Makefile. This option disables this
feature.
-a arch
Use arch in place of $(ARCH).
-o os Use os in place of $(OPSYS).
-f makefile
Name of the makefile to be used rather than the default Makefile.
-Dname=value
Set CM variable to given value.
-Dname Set CM variable to 1.
-Uname Unset CM variable.
SEE ALSO sml(1), ml-lex(1), ml-build(1), ml-yacc(1).
The programs are documented fully by CM: The SML/NJ Compilation and Library Manager, User Manual, Matthias Blume, which is available via
<http://cm.bell-labs.com/cm/cs/what/smlnj/doc/CM/new.pdf>.
AUTHOR
This manual page was written by Aaron Matthew Read <amread@nyx.net>, for the Debian GNU/Linux system (but may be used by others).
October 25, 2002 ml-makedepend(1)