here's a bourne script that copies a file:
#!/bin/sh
trap 'echo "script ex3 interrupted"; exit' 2 #user of system kills script
# control number of arguments typed after command
# command is name of shell script file, which has to be executable
# ie chmod +x filename
if [ $# -ne 2 ]
then
echo "two arguments expected"
exit 1
...
User Profile
Collapse
-
don't forget that there are hundreds of shell scripts on your computer now: make search for shell scripts
i can email you a few simple beginner examples that i have done....Leave a comment:
-
sorry i didn't put that very well
i was kinda hoping for a reply on that same day.. i'm alright now, well n truly in the right direction, thanks...Leave a comment:
-
linux links
Could someone please point me in the right direction with regards to link 'files'. I would like to be able to use the linux c IO to find/query them, along with other data files. they seem to be evading the file radar: the readdir function (dirent.h) is not picking them.
email.removed@4 .ur.protection. com
On a different matter, my thanks to Derrick Coetzee for his sample 'pseudo code' fopen_mkdir. Dodgy as it may be,...
No activity results to display
Show More
Leave a comment: