Search Results

Search: Posts Made By: ruben.rodrigues
10,575
Posted By ruben.rodrigues
Problem setting environment variables from script
Hi all!

I know that environment variables can be set on the .bashrc file, but I need to set them from a sh script. I saw a lot of websites that teach this but it doesn't work for me.

#!/bin/sh...
1,623
Posted By ruben.rodrigues
I can only think in one way. killall...
I can only think in one way. killall gnome-terminal

that will close all terminal windows..

I know it's not the same as exit but it's the only thing I can think about
1,444
Posted By ruben.rodrigues
Can't do: su $user
Hi all!

I need a script that first creates a list of all user in the system and then changes to each user to set some system settings.

So far I have this:

#!/bin/sh

ls /home/ >...
2,330
Posted By ruben.rodrigues
it was mounted with cifs...samba filesystem but...
it was mounted with cifs...samba filesystem but what difference would this make?
2,330
Posted By ruben.rodrigues
1- Root 2- Root 3- Ubuntu 8.04 64bits Server...
1- Root
2- Root
3- Ubuntu 8.04 64bits Server Edition

Danke!
2,330
Posted By ruben.rodrigues
Doesn't run as a cronjob...
Hi!

I have a svn backup script that works perfectly if I execute it from the command line but if I set it as a cronjob to run at night, only part of the code works.

So, basically the scripts...
Forum: Programming 02-22-2010
3,189
Posted By ruben.rodrigues
I'm sorry...I totally forgot to close this...
I'm sorry...I totally forgot to close this thread..the function is filegrob and I found this almost one week ago..but then I forgot to close this thread.

Thanks anyway
Forum: Programming 02-09-2010
3,189
Posted By ruben.rodrigues
Check if file exists + ulp :S
Hi all!

I know that this may not be the best forum to ask ulp and eagle related question. But the guys from eagle didn't know the answer and this is the BEST programming forum I know :D

How can...
6,248
Posted By ruben.rodrigues
oh man! I luve thiz forum...Thanks a lot
oh man! I luve thiz forum...Thanks a lot
6,248
Posted By ruben.rodrigues
mv hidden folders
Hi guys!

I need to know how I can move hidden folders because I have a script that backs up my svn projects everyday and I have 2 backup folders "Today" and "Yesterday". It is like this:


...
1,128
Posted By ruben.rodrigues
windows question
Hi guys!

I've a windows questions couse I want to prank a friend with the grudge screem.

So what I need to do is to run a flv video from a bat file and I know how to do this with linux and a...
2,053
Posted By ruben.rodrigues
Move the folder which I right click
Hi!

I don't use to program much with unix but it would be useful to create a script to move a folder to a default directory.

For example I right click on a directory and the script moves it to...
5,757
Posted By ruben.rodrigues
Because it's not a regular file. It's a file from...
Because it's not a regular file. It's a file from a working copy that I use with subversion
5,757
Posted By ruben.rodrigues
zenity --question help
Hello

I've a script where I've a zenity --question because I want to ask the user if he is sure that he wants to delete the file.
The problem is, if the user says "OK" it deletes nad if the user...
2,821
Posted By ruben.rodrigues
worst. now it kill me the bar before it finishs ...
worst. now it kill me the bar before it finishs
just tell me one thing if you know

I have a second script that looks more simple

#!/bin/sh


user=`whoami`
pname="svn `whoami`"
var=0
...
2,821
Posted By ruben.rodrigues
well it gave me the same error. I will post my...
well it gave me the same error. I will post my script, not because I want you to solve it for me but because I already trying this since last week and as a new guy where I need a lot of help...
4,017
Posted By ruben.rodrigues
Try this Automating backups with tar...
Try this Automating backups with tar (http://www.faqs.org/docs/securing/chap29sec306.html)
Is very cool and works nice
8,746
Posted By ruben.rodrigues
The passphrase is something to unlock and not to...
The passphrase is something to unlock and not to give. So you should unlock it at the startup or like I have it, always unlock :)
2,821
Posted By ruben.rodrigues
Until loop
Hi

I just want to know if this until loop is write because my script is not working and I don't know where is my error and maybe it's in this until cicle

until [ ! `cat svn.txt` -eq $pname ]...
4,840
Posted By ruben.rodrigues
well thanks for trying but I found another...
well thanks for trying but I found another solution and now I don't have zombies.

But I still have a problem and I fell like I'm very close to finish this bloddy script



What is wrong in...
4,840
Posted By ruben.rodrigues
Zombie process
Hi

I need help because I don't know if it is possible to add a find inside a cat.

like I have a file with the pid of the process that use to became zombie. And I have the same pid stored in...
74,214
Posted By ruben.rodrigues
DAMN you are fast :)
DAMN you are fast :)
74,214
Posted By ruben.rodrigues
other thing here: if [ -d $DIR ] ; then ...
other thing
here:
if [ -d $DIR ] ; then

how can I use a not
like -d $DIR but negative
74,214
Posted By ruben.rodrigues
MANNNNNN no way. lol I lost sooooo many time and...
MANNNNNN no way. lol I lost sooooo many time and was just a space. lol

thanks
74,214
Posted By ruben.rodrigues
thanks, it works but not in my script because it...
thanks, it works but not in my script because it says line 29 [0: not found (????)
so my code is:


and my line 29 is the last fi. And I have a lot of echo to show me the status.
Now I...
Showing results 1 to 25 of 53

 
All times are GMT -4. The time now is 09:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy