Search Results

Search: Posts Made By: mnanavati
3,361
Posted By mnanavati
Size of a tarball without untarring - Catch parent tar ball has sub tars
hi,
I am in a weird situation. I have a parent tarball which contains 2 sub tarballs.
The structure is such :
Parent.tar.gz ---- > child1.tar.gz and child2.tar.gz
I need to get the size of the...
Forum: Ubuntu 12-14-2010
3,646
Posted By mnanavati
/etc/hostname gets modified on reboot of ubuntu box
Hi,
I have a ubuntu box with /etc/hostname entry like abcd-lx . However, if the machine shuts down without a proper shutdown , on reboot, the enter in /etc/hostname looks like %vserverguest%
...
2,251
Posted By mnanavati
It is just stored as a template (directory). Is...
It is just stored as a template (directory). Is that what you were asking?
2,251
Posted By mnanavati
Updating a template - Ubuntu Image
Hello,
This might sound like a really silly question but that is why i post it in Unix for Dummies :)

I am a little confused as to how I can install software or remove software from an image (say...
3,458
Posted By mnanavati
I tried this. It throws an error saying...
I tried this. It throws an error saying unexpected end of file.
Error is thrown on line sudo vserver vservername enter ---- unexpected eof.
3,458
Posted By mnanavati
Bash!
Bash!
3,458
Posted By mnanavati
Here document inside a here document?
Can we use a here document inside a here document?

Something like this


ssh user@remotehost << REMOTE
sudo vserver vsernamename enter << VSERVER
perform actions on vserver.
VSERVER...
7,124
Posted By mnanavati
Can you explain that a little more? I am sorry,...
Can you explain that a little more? I am sorry, just started shell scripting!! How to redirect stdin to provide input to sudo?
7,124
Posted By mnanavati
Well the purpose is not to echo after sudoing...
Well the purpose is not to echo after sudoing into the vserver. The code inside there is proprietary and so I did not want to post it here

Secondly,
If I sudo on command prompt it works fine....
7,124
Posted By mnanavati
Unfortunately I cannot ssh with root credentials...
Unfortunately I cannot ssh with root credentials , and I cannot change the sudoers file on servers.
So i need to sudo only after I ssh
1,352
Posted By mnanavati
Problem with Sudo inside a here document
Have a sudo statement inside of a here document. It prompts me for a password, but doesnt wait for me to enter my password. Is there a way I can use the command without sudo or anyway that I can...
7,124
Posted By mnanavati
sudo inside a here document not working
Have a sudo statement inside of a here document. It prompts me for a password, but doesnt wait for me to enter my password. Is there a way I can use the command without sudo or anyway that I can...
25,968
Posted By mnanavati
Thank you very much! That worked :)
Thank you very much! That worked :)
25,968
Posted By mnanavati
That doesn't work. Now instead of printing the...
That doesn't work. Now instead of printing the LINE --- 3 times , it prints LINE --- just once.

Also, I am not very clear what you meant by it trying to read line from filename.

I have a...
25,968
Posted By mnanavati
While loop read line not working
Hi,
I am trying to read a file line by line inside of a while loop. This while loop is part of a here document.

while read line
do
ssh -t $2@$remotehost <<REMOTE

ls path/to/dir >...
1,464
Posted By mnanavati
Here document supports user interaction?
Hi,
I am trying to ssh into a remote machine and then enter a vserver on the remote machine. I am using here document to carry out these commands on the remote machine. My here document looks like...
20,683
Posted By mnanavati
Thank you! That helped a lot :)
Thank you! That helped a lot :)
20,683
Posted By mnanavati
This creates a directory structure of the site...
This creates a directory structure of the site itself. I donot want to create a directory stucture. Basically, just like index.html , i want to have another text file that contains all the URLs...
20,683
Posted By mnanavati
Extract urls from index.html downloaded using wget
Hi,
I need to basically get a list of all the tarballs located at uri
I am currently doing a wget on urito get the index.html page

Now this index page contains the list of uris that I want to...
Showing results 1 to 19 of 19

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