8

Calling execve bash on bash scripts can't find arguments

view full story
linux-howto

http://stackoverflow.com – I have two (Ubuntu Linux) bash scripts which take input arguments. They need to be run simultaneously. I tried execve with arguments e.g. char *argv[10] = { "/mnt/hgfs/F/working/script.sh", "file1", "file2", NULL }; execve(argv[0], argv, NULL) but the bash script can't seem to find any arguments at e.g. $0, $1, $2. What's missing? (HowTos)