change login


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting change login
# 1  
Old 06-22-2010
change login

Hi,
I have a script called from php, which executes the following code:

Code:
basename $arxivo .doc > nombre
nom=`cat nombre`
antiword -t $arxivo > $nom.txt
rm nombre

The problem is that I do not antiword conversion. I guess the problem must be that the user does not have permissions www-data (the Apache) to run such commands.
I can do?

Thank you very much
# 2  
Old 06-22-2010
what does the antiword do? reverse?

you can tell your actual requirement, may be we can come up with the another solution without using antiword .
# 3  
Old 06-22-2010
First, you again win an Useless Use Of Cat Award, because that could have been written just as easy as
Code:
antiword -t $arxivo > $( basename ${arxivo} .doc).txt

3 lines less, and no temporary file with a race condition to worry about.

Second, CGI scripts usually run in a very minimalistic environment. Try referencing the antiword command by it's full path, make sure the directory you're in is writeable by www-data, and that the original file can be read by www-data.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Change login process

Hello everybody ! At the beginning - I hope everything will be understandable as I know that my english skills are not as good as I would like. I use Manjaro Linux for one year, previously used Ubuntu for 6 years. Today I got an idea to create small USB electronic device but I don't know how... (6 Replies)
Discussion started by: halfboy
6 Replies

2. Solaris

Change Password on First Login

Hi there, Is there a way to ask the solaris user to change passwordo n the first login. I am looking at how to do this for every single new user. (5 Replies)
Discussion started by: alvinoo
5 Replies

3. Shell Programming and Scripting

Change Last Login within /etc/shadow

Was wondering if any had a script to change the last login field within the /etc/shadow? Need to it run against machines to "reset" the last login so local accounts will not expire if account isn't access within the mandatory setting we are force to implement. Thanks!!!! (5 Replies)
Discussion started by: Luv_STL
5 Replies

4. Post Here to Contact Site Administrators and Moderators

change of login id..

Hi, Can I change my login id having my current account alive? I found one thread related to this which shows that it is possible. I also agree that this is not done in normal terms. Still, can I request for it? I really dont want to lose my current account and my post count. would... (1 Reply)
Discussion started by: clx
1 Replies

5. Post Here to Contact Site Administrators and Moderators

How can i change my login ID?

Hello, How can i change my login ID? My login ID is younus_syed. Thanks & Regards Younus Syed (10 Replies)
Discussion started by: younus_syed
10 Replies

6. UNIX for Dummies Questions & Answers

I want to change login failure message, "login incorrect"

I want to change login failure message, "login incorrect" deny user login for user id tom sudo passwd -l tom type username and type password on login prompt and then it will display login failure message "login incorrect" console ############ login: tom password: login incorrect... (2 Replies)
Discussion started by: lifegeek
2 Replies

7. AIX

Change users login name

Hi, I need to change some users login name in AIX. With solaris i donīt had problems, i have used "usermod". But in AIX the usermod command donīt have the same behavior. Can someone give me a tip on how to perform these changes? Thanks in advance. (9 Replies)
Discussion started by: spacewalker
9 Replies

8. UNIX for Dummies Questions & Answers

Login screen change

If I want to change a Solaris 8 login screen to add a Company name what do I need to do ? Current login prompt SunOS 5.8 login: ... (2 Replies)
Discussion started by: miredale
2 Replies

9. UNIX for Dummies Questions & Answers

Password change at login????

I want Red Hat Linux 7.2 prompt for new password at next login time. How can I do this????? passwd -f don't work for linux...... (4 Replies)
Discussion started by: rrivas
4 Replies

10. UNIX for Dummies Questions & Answers

change login dir

Ok when I log in to my terminal I land in a dir. How can I change the dir that I start from when I login? Thanks for the help, sure it is a no brainer for you guys cd (5 Replies)
Discussion started by: lorcet222
5 Replies
Login or Register to Ask a Question