Dec 13, 2013

How to delete the changelist and workspace of another user ( clean ex-employee workspace to reclaim space and license )


this will give you the pending changes on the client

p4 changes -c user_workspace

this will delete the pending change list of your choice

p4 change -d

after that, you can delete the client using

p4 client -d user_workspace

How to overwrite symbolic links in unix

You can overwrite symbolic links by using -f to the default command

Example
mohan@mysys /cygdrive/c/
$ ln -s /tmp/test.sh tumba
mohan@mysys /cygdrive/c/
$ ls -l
total 80
lrwxrwxrwx  1 mohan        Domain Users    5 Oct  9 14:59 tumba -> /tmp/test.sh
mohan@mysys /cygdrive/c/
$ ln -s /tmp/build_env.log  tumba
ln: failed to create symbolic link `tumba': File exists
mohan@mysys /cygdrive/c/


 Now we can overwrite the existing symbolic link by using -f







$ ln -s -f /tmp/build_env.log  tumba
mohan@mysys /cygdrive/c/
$ ls -l
total 80
lrwxrwxrwx  1 mohan        Domain Users    5 Oct  9 14:59 tumba -> /tmp/build_env.log

How to fix perforce error 'Some file(s) could not be transferred from client.'

Problem:
open for read: c:\p4\client_spec.txt: The system cannot find the file specified.
Submit aborted -- fix problems then use 'p4 submit -c 1347493'.
Some file(s) could not be transferred from client.

Cause:
When you try to open a file which does not exist in perforce, it gives above error. First do a p4 add, and then open it.

How to change the binary name from the defalut name setup.exe in Installshield


installshield  - change setup.exe name
release tab-> product configureation -> setup file name(change)

Specify the file name—without the .exe file extension—that InstallShield should use
for the setup launcher file that it generates at build time. If this setting is blank,
InstallShield uses the default value of Setup, and the setup launcher file is called
Setup.exe.

how to format FAT 16 in windows 7


C:\Users\mohan>format G:  /FS:FAT /A:16K
Insert new disk for drive G:
and press ENTER when ready...
The type of the file system is FAT.
Verifying 3835M
The specified cluster size is too small for FAT16/12.

How to Unmount an ISO in linux

To see the list of currently mounted file systems,

#mount

To unmount a mounted iso,






# umount /mnt/iso

assuming that your image is mounted at /mnt/iso

How to mount ISO in Linux using command line

Procedure to mount ISO images under Linux

As Root

1)Create some directory to mount the iso so that you can view it as a regular directory.

             # mkdir -p /mnt/disk

2) Use mount command as follows to mount iso file called disk1.iso:

             # mount -o loop disk1.iso /mnt/disk

Now to see the contents of iso file, Change directory to list files stored inside an ISO image:
            # cd /mnt/disk
            # ls -l


More about loop device

A loop device is a pseudo-device that makes a file accessible as a block device. Loop devices are often used for CD ISO images and floppy disc images. Mounting a file containing a filesystem via such a loop mount makes the files within that filesystem accessible. They appear in the mount point directory using above commands.