Skip to content

tcpdump filename with -C and -W option

I am trying to capture tcpdump in Linux and I used the -C and -W option to enable capturing tcpdump with file size limited to 250MB. On the other hand, the output I am getting is But I would like to know how to make the output file name into: Thanks for any help you can suggest! Answer Tcpdump has

If [ $? -ne 0 ]; not working?

I am trying to detect a running service and if not there, try to do something: The service is clearly there but still I am getting “Service not there.” I read about the exit code $? I think maybe the exit code in a series of commands might have effect on what we wanna test? So I am not sure

Join Windows 7 to SAMBA+LDAP PDC

In my smb.cfg I have follow command for adding machine user to my PDC server: When I want to join new Win7 machine to my PDC with root user (this is default configuration) I got follow message: I tried adding follows, but without success (same error message) Note: If I run command manually: /usr/sbin/useradd …

Write magnetic tape end of record linux

Task is create two record with different sizes within one file entry. I’m using python 3.4.5 for testing: Is there an ioctl opt code that will initiate a new record on the tape with variable record length. Or any other way to work around this bug? Answer Issue was with tcopy, it uses block size on devic…

Option -l of exec shell command

Could you please clarify on the use of -l option of exec shell command. I didn’t notice any difference when I ran exec ls | cat and exec -l ls | cat. Answer The -l option of exec adds a – at the beginning of the name of your command. For example: Note the – everywhere before diff. The point

PHP isn’t able to read file

I’m stuck trying to open a file with fopen in php. I checked following items: chmod for statuseing.php 0777 owner is www-data with groud www-data script is running as user www-data groups are uid=33(www-data) gid=33(www-data) groups=33(www-data) pwd is /var/www/html as expected the path the scripts want…