Help on runing a script


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Help on runing a script
# 1  
Old 01-03-2006
Help on runing a script

Smilie Hello group,
Let me explain a little,
I´m running under HP UX 11.i SO. I need to put on the server via FTP a file with the following attributes: -r--r--r-- this is read for all.
Also I tried using inet.conf to change the umask for ftp and works perfect on giving the permissions for the file, but there is another application B2B runing on the same server that needs the files of ftp created with the default permissions.

Due to the B2B application is more important than the other application, the defaults permissions for FTP reamins. So,

I need help on writing a scritp that, detects, when a upload is done on a specific directory and change the file permissions. I know that runing a cron on a specific time basis is the trivial answer, but what I´m looking for is some more sofisticated. A scritp that triggers when a upload is done.

This is possible? I was looking for some pice of code to give me a clue on this but I was unsuccesful.

I will appreciate any ideas on this.
Thank you in advance Smilie
# 2  
Old 01-06-2006
After you put the file, just chmod it. HP's ftp server supports the chmod function. Most ftp clients have chmod. If your ftp client doesn't, you can use the site command instead.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Getting error while runing the script

While running the script it is failing while searching the pattern if the pattern is found then it is running fine if the pattern is not found it terminate with error my requirement is if the pattern is not found then it exit successfully. cat $INTE/CTY_${DATE}_cn_ar.*|cut -c 1-100|grep... (3 Replies)
Discussion started by: jagu
3 Replies

2. Shell Programming and Scripting

runing script with log level 4

i have bash script with some batches, and when i putt log level 4 in script i get error while executing or if i rung script.sh with parameter log level 4. i appriciate some advice :) (3 Replies)
Discussion started by: unknown1
3 Replies

3. Shell Programming and Scripting

Runing Shell program in Windows XP

This is my first time to come across about Unix and Shell scsripting. So, I want to practice shell scripting and Unix in my WindowsXp S P2. Bu t i dont know what software sh ould i use for this. And this is for personal Practice only. Please Help me,. (1 Reply)
Discussion started by: mccm
1 Replies

4. Shell Programming and Scripting

runing shell with java and sqlloader issue

Hello there, I'm writing a shellscript and it uses sqlloader, it works good coz load the data into the DB. But I'm runing the shell from a java program with Runtime(). It does execute the shell but the sqlloader doesn't seem to be working!! Does anybody out there knows why?? (0 Replies)
Discussion started by: ying_dav
0 Replies

5. Shell Programming and Scripting

Need a help Please- runing the perderabos script datecalc

i have a script in bourne called cdrsnokia.sh and inside of it calls a script called resta_dias where it calls the datecalc script (perderabos date calculator). The purpose is to rest (-) one day arithmetical operation the content of each line and the result is passed to another file lista2;after... (1 Reply)
Discussion started by: alexcol
1 Replies

6. UNIX for Dummies Questions & Answers

runing a script as superuser

My first post: in /etc/rc2.d i have a startup script: Script1. if you run #>scirpt1 stop/start from any user other than root you will get u must be supper user to run this script. eventhough the rights are 777. Question: how can i get my user_a be able to run this script to stop and start it... (2 Replies)
Discussion started by: bcheaib
2 Replies

7. Programming

how To edit exe to insert a serial no wich can be usd by runing exe

At time of installation I have to open the resource. and i have to insert a string serial number in the exe. please provide me code to edit the exe (in solaris) to insert a serial number which can be used by exe at run time. (6 Replies)
Discussion started by: ssahu
6 Replies

8. UNIX for Dummies Questions & Answers

do i need this runing ?

1. Do I need syslog running in my services? 2. Is there such a critter for counterstrike installer for linux or do i need to use winex (2 Replies)
Discussion started by: amicrawler2000
2 Replies

9. UNIX for Advanced & Expert Users

Runing sh files from c file

How can I run shell script file and not command from c file? (3 Replies)
Discussion started by: kamil
3 Replies

10. UNIX for Dummies Questions & Answers

process runing automatically

Hi, I need some help, because I'm trying to create a process runing all the time (not invoqued by a crontab), like a daemon, to detect the creation of a new file in a specific directory and axecute a process wich do something with this new file. Can you help me? For your information my Unix is... (2 Replies)
Discussion started by: lsquillacioti
2 Replies
Login or Register to Ask a Question