09-11-2007
how to pass arguments to a script with operator "."
Hope this one is a bit more challenging than the previous one... how to pass parameters in the previously menioned script with operator "."
Assuming doStuff is a common script required 2 arguments, I tried both:
. doStuff parm1 parm2
. "doStuff parm1 parm2"
Nothing is working. What is the correct syntax?
Thanks
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
I need to access files from a specific folder of a Linux system from an another Linux System Remotely.
I know how to, Export a folder on One SCO System & can access the same by using Import via., NFS in the Sco Unix SVR4 System using the scoadmin utility.
Also, I know to use mount -t ... (2 Replies)
Discussion started by: S.Vishwanath
2 Replies
2. Shell Programming and Scripting
I am still learning perl and confused on this script I am revising at work. The original author uses a package, which I have left in the code; however, I cannot seem to access the global variable $dir.
Code snippet:
I have also tried using $RRD_MG::dir to no avail.
Thank you. (6 Replies)
Discussion started by: effigy
6 Replies
3. UNIX for Dummies Questions & Answers
hi all,
i want to know y kernel is giving access for multiple users to access a file when one user may be the owner is executing that file. Because other user can manipulate that file when the other user is executing that file, it will give the unexpected result to owner . plz help me... (1 Reply)
Discussion started by: jimmyuk
1 Replies
4. Programming
Hi friends,
when I am passing arguments to main, I want another function to be able to have access to that function, the problem is that I am creating athread, which has a function like void *xyz(void *), how can pass the refernce of argv to this function, if you see my program, you will better... (2 Replies)
Discussion started by: gabam
2 Replies
5. Programming
Hi friends,
Hope everyone is doing well. Please have a look at this simple program, you will figure out what I want.
#include <stdio.h>
int main()
{
printf("Enter an integer!\n");
scanf( "%d", 134511890 ); // Valid address on my computer
printf( "%d\n", ???? );
return 0;
}
... (3 Replies)
Discussion started by: gabam
3 Replies
6. Solaris
Hi All,
I want to configure samba share permission so that only directory creator/owner has a read and write permission and other users should not have any read/write access to that folder.Will that be possible and how can this be achieved within samba configuration.
Regards,
Sahil (1 Reply)
Discussion started by: sahil_shine
1 Replies
7. Shell Programming and Scripting
Hi all,
recently I found that $_SERVER does not deliver the complete url with query anymore on my server.
http://www.example.org/search.php?stichwort=wiki
echo $_SERVER;
/search.phpHowever $GLOBALS works in this case.
http://www.example.org/search.php?stichwort=wiki
echo $GLOBALS;... (1 Reply)
Discussion started by: lowmaster
1 Replies
8. Proxy Server
Dear all experts here,
:)
I would like to install a proxy server on Linux server to perform solely to control the access of Web server.
In this case, some of my vendor asked me to try Squid and I have installed it onto my Linux server.
I would like know how can I set the configuration to... (1 Reply)
Discussion started by: kwliew999
1 Replies
9. Programming
Hi, I'm new to shell programming. And I'm having issues with accessing a C file with shell. Given a C code which contains functions and Lets say each function contains a multiplication instruction. So I need to extract the size of the operands (a,b) of each multiplication instruction in bits. How... (3 Replies)
Discussion started by: beginner_99
3 Replies
10. UNIX for Beginners Questions & Answers
Hello.
I am running leap 15.1
sudo behavior may differ from other distrib.
I have a file with functions definition
....
function_1 {
echo "Hello world"
}
export -f function_1 This file is sourced by both /etc/bash.bashrc.local and profile.local.
So the functions are... (3 Replies)
Discussion started by: jcdole
3 Replies