General :: Pset Profile To Be Called Only Once?
Mar 24, 2010Profile is getting called twice for every login change. Interestingly when i use SU, it is invoked once only. how to set profile to be called only once.
View 3 RepliesProfile is getting called twice for every login change. Interestingly when i use SU, it is invoked once only. how to set profile to be called only once.
View 3 RepliesI feel there's a bit of a misunderstanding going on between C++ and me...My problem is that I have a deque of pointers to a class, and create objects then add them to the deque in a for loop. However, the destructor is called on the object as soon as the loop quits.
Code:
This prints:
Code:
Now, if I change the deque from deque<Test*> to deque<Test> then it works fine - I get:
Code:
However, I can't do this with my actual code, because I am creating a deque of pointers to an abstract class, so it won't let me instantiate the class. (This is all so that I can take advantage of polymorphism, and call functions on a set of similar objects without worrying what type of object I'm dealing with).
So, I suppose my question is: what is the correct way to create that deque of pointers to the abstract class? I don't seem to be barking up the right tree currently.
How do I share default profile file by NIS so that I do not have to setup profile in every NIS clients?
View 3 Replies View RelatedI've already gotten into the .mozilla folder and found the profiles.ini file. My windows XP system has it's Documents and Settings folder on a seperate drive (D:Documents and settings) And I've located the profile (application datamozillafirefoxprofiles) Now all I need to do is put the path into the profiles.ini file in the .mozilla folder in Ubuntu. The problem is I don't know exactly how to format it.
In windows the path is:
How would I translate this into something ubuntu "follows?" I already have the profile name changed as well.
I want to copy a file from an old directory to a new directory and ideally I would like that the 'mv' command itself could create the directory for me in one step...That is to say that the directory would not exist until 'mv' has been called as in:Code:mv olddirectory/file.dat newdirectory/file.datso mv would create the directory 'newdirectory' in the above call....I am not sure if this is possible however, that is to say I think it may be necessary that the directory 'newdirectory' already exists before I make the above call to mv, as when I make try the above call when 'newdirectory' doesn't exist I get the following error:Quote:mv: cannot move `test1/4215/4215-001R.fit' to `test2/test.fit': No such file or directoryso to sum up, my question is:is there some paramater for 'mv' that I can change so that it will create the new directory as well as copy the file and if not, are there other commands that might do this?
View 3 Replies View RelatedI was looking around the files in /etc/ to see what they were and what they said, then I noticed there was two files called passwd, which confused me a lot for a second then I noticed one of them was actually passwd-.I compared them and they only differed by one line:
< games:36:35:added by portage for gemrb:/usr/games:/bin/bash, which was in passwd but not passwd-.Should these files both exist? If yes, why, what does having both do? If no, then its safe to say I can just delete passwd-
1. What is it called when you move a PDF window while it is loading and the window manager does not keep up with the image, (it gets all blurry when the window is moved?)Why does this happen?
2. Why is it that when a browser window is clicked to load a new address it won't always go to it. It has to be clicked again.
3 Why is it that sometimes IE is the only browser that will work on XP. FireFox and Opera will not load a page but IE will.
4 Why is it that Firefox on Linux sometimes everything inside the window is slow to appear. It has to be closed to fix it. When the contents does appear it is all at once.
5.Why is printing different things on Linux a problem. I have a lot of inconsistency with trying to print things from Evince. Some docs print and some won't. Copying and pasting is also a problem for Evince.Why?
6. Is there a way to have Linux Shut down after computer activity has stopped and not just with a timer. Lets say I'm trying to download something and I want it to turn off after it has finished with the down load.
7. Why are some Web pages biased towards Windows. I notice that some java scripts will only run right on Windows machines with IE. A lot of on-line forms are like this.
8. Can (MOVIES, PICTURES AND MUSIC) torrents be downloaded on Linux without risk?
9. It seams that Linux browsers do not keep previous web pages in memory so if you want to go back Linux always has to reload them from the server. Why is this?
10. Why is it that browsers sometimes won't indicate that the page has finished loading, "ever".
11. Why does Linux turn on the number-lock when loading its self?
12. Why can't the brightness be adjusted in Totem? There is a menu to change it but it does not work.
I made the following script:
Code:
#!/bin/bash
logErrors(){exec 2>/tmp/errorlogfifowhile truedocat /tmp/errorlogfifo |echo $(date "+[%Y-%m-%d %H:%m:%S]") Error: >/var/log/error.logdone}
logErrors
ls inexistentFile
exit 0
If I execute the script I see the formated error message in /var/log/error.log, as to be expected. After the script execution, I hoped "logErrors" was not executing anymore, but when, in another terminal, I call "echo something > /tmp/errorlogfifo", I still see the formated error message "something" in "/var/log/error.log". How can I finalize "logErrors" before the script ends? Or, maybe someone knows a better way to format and log the erros in a script.
I forgot to say that the file "/tmp/errorlogfifo" is a named pipe created by the command "mkfifo /tmp/errorlogfifo".
I have two shell scripts:
sh1.sh
echo "First script"
echo "Now calling second one"
sh2.sh
sh2.sh
echo "Second script"
In this shell script, I want to print out which shell script called this. In this case, sh1.sh called sh2.sh. So, I want to print out "sh1.sh".How to achieve?
Exactly what sequence of files are called as in the .my_profile,.profile,.vimrc,.vim. These are few files that I are there on the server. I want to know which file is called first and what sequence. Also can you point me to some links that tell exactly what are these files for.
View 1 Replies View RelatedI've got a script in ubuntu 9.04 in init.d that I've set to run on start on with update-rc.d using update-rc.d init_test defaults 99. All of the symlinks are there and the permissions appear to be correct
-rwxr-xr-x 1 root root 642 2010-10-28 16:44 init_test
mike@xxxxxxxxxx:~$ find /etc -name S99* | grep init_test
find: /etc/rc5.d/S99init_test
[code]....
The script runs through source and ./ without issue and behaves correctly. Here is the source of the script:
#!/bin/bash
### BEGIN INIT INFO
# Provides: init test script
[code]....
When the machine starts, I don't see "script called" or "start called" in the test.log at all.
Need reasons why the unit of cache swapping is called a line rather than a page ?
View 4 Replies View RelatedI've been trying to download a visual novel called wanko to kurasou, my laptop doesnt have a disk drive so i have to download it. i found something called 'onsrcipt' but it only works for certain games, do i need a windows emulator or something.
View 2 Replies View RelatedIn windows there is a program called keyboard jedi that shows what keys are pressed on the keyboard. is there an equivalent for linux?
View 4 Replies View RelatedI'm trying to compile a program from source. When I run make the following appears:./ config. status --recheck make: ./config.status: Command not found make: *** [config.status] Error 127.There is no file called config. status in the current directory. Why was it not created?
View 1 Replies View RelatedBefore I begin I would like to say that while I am not a Linix newbie, I am not a guru or even a regular user so don't assume I have anything more than general Linux knowledge. I am carrying out research involving virtualization and Single Sign On technologies and I need to display a Xen based virtual machine to the desktop before the user is logged in. This is for a demonstration system and I am trying to find a solution that involves the least amount of system modification possible.I found a PAM module that allows for the invocation of arbitrary shell scripts which would allow me to start and display the virtual machine in question, but when trying to run the virt viewer (or any process with graphical output) I am informed that the display cannot be found. Explicitly setting the DISPLAY env to :0 before running the command has no effect.
This is where my Linux knowledge runs out. I know that there has to be some way to connect to the X session being used by the greeter, I just don't know what that method involves. The shell script is running with root privileges, so it can access whatever "X credentials" are stored locally.
I will be thankful for any assistance this forum might be able to provide, but please do not suggest alternatives to displaying a VM for my SSO needs, and please avoid any solution that involves having to write my own custom greeter. If there is absolutely no way to accomplish what I am trying to do without greeter modifications definitely tell me, but I am a security researcher, not a Linux developer so I am looking for the easiest solution to implement, even if that solution is a gross hack.
i have no clu about this wine thing i cant even install it.
View 8 Replies View RelatedI created a user called gdev.
As root, I made a dir /var/www/html/test
I have done these same steps on numerous machines. However, in this instance, gdev cannot cd into test/
How can i edit the environment file?
View 3 Replies View Relatedhow can i upload my pic into my profile.
View 9 Replies View RelatedI am using red-hat linux-5 version. My profile become corrupt and now I can't see the files, folders I had saved. How can I recover my corrupt profile.when I open my profile there appears no data.
View 1 Replies View RelatedIs there any software that can 'read' the log file in nagios and produce a so-called 'scoreboard' (something like a graph) to display the status of the services? I was told that one could 'read' the log file stored in nagios and create a scoreboard.
View 12 Replies View RelatedI've recently installed virtualenv + virtualenvwrapper on Linux Mint 10 LXDE. For convenience I've added the standard WORKON_HOME settings to my ~/.profile
export WORKON_HOME=$HOME/Envs
source /usr/local/bin/virtualenvwrapper.sh
Then I've noticed that workon does not work after login, which means the above commands were not run. If I source ~/.profile then it works. I'm really not sure what could cause .profile not being run? I've checked and I don't have .bash_profile or .
How to add a new role and profile for new user by using the command "useradd" in linux.In solaris there is an options(useradd -R and useradd -P) for these actions, like this how to add role and profile for new user in linux.
View 3 Replies View RelatedA cluster with a head node and compute nodes. An application with a couple of env variables (App_HOME, PATH) set in .profile (default shell sh). If I login to the head node/compute nodes on a terminal everything works fine. The correct env variables are set and the application works. However, when my application tries to do it, say ssh <compute node1> <application>, it appears the environment variables are not available. It only looks in the minimal /bin, /usr/bin type PATH. This tells that the .profile is not being read
View 2 Replies View RelatedI can't store LD_LIBRARY_PATH in /etc/profile. After restart the variable is empty. All OK with any other variable, for example INFORMIXDIR, but not with LD_LIBRARY_PATH. If I use EXPORT command in the console all OK. I'm using Ubuntu 10.04. What's wrong?
View 13 Replies View RelatedI installed Fedora13. But my Windows is Gone. I followed Next-->Next and completed installation after 1 hour. When i restarted the system, isaw blue screen something called grub and windows is not listed. I had important data in it where did it go?
View 14 Replies View RelatedI have a Finnix live CD. I can customize it by remastering it. When I boot with the live CD I need to make a little change in the boot profileThe boot profile before making the changes islinux apm=power-off vga=791 initrd=minirt quiethe boot profile after making the change become linux apm=power-off vga=791 initrd=minirt quiet root=/dev/sr0Now, I need to make this change (adding root=/dev/sr0) permanent. How can I do that?
View 1 Replies View RelatedI know the way to create a new firefox profile in Windows.
I want to create a new firefox profile in linux/solaris.
I'm building the code on remote linux machines, and it takes very long time. Since all the filesystem is on NFS, I suspect the NFS is the bottleneck. Can I profile the build process (make all) down to system read/write calls? Or simply put, what tool do I need to find the bottleneck. Is strace gonna help?
View 1 Replies View Related