Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Cd \bad-directory ; source junk.1 logs me off! Post 303036667 by Neo on Sunday 7th of July 2019 05:49:54 AM
Old 07-07-2019
FYI

Moderator's Comments:
Mod Comment I saw from a quick Google search that this question is a cut and paste from another forum.

Please do not cut and paste formatted questions from one web forum to another.

Thanks
This User Gave Thanks to Neo For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to write logs to a specified Directory??

I have the following script which writes the output of the scirpt in a log file in the same directory from which the script is run. I need the scipt to write the logs daily to a differnt directory with the date appended to the log on a daily basis. The script is as follows... .... (1 Reply)
Discussion started by: nirmal84
1 Replies

2. Shell Programming and Scripting

Perl - bad interpreter: No such file or directory

Here is a puzzler. To start, let me say that I've done a search on this issue and it is definitely not related to line endings being encoded in windows returns. I get this error when I run SOME perl scripts. I have a script called hello_world.pl. I do $cp hello_world.pl new_hello_world.pl... (0 Replies)
Discussion started by: mjmtaiwan
0 Replies

3. UNIX for Dummies Questions & Answers

Source all files in a directory

Hi everyone, Is there an efficient way to source all of the files contained in a directory? Theoretically I could create a FOR loop and successively source each file, but I just wanted to check if there was a cleaner method. Thanks! Mike (3 Replies)
Discussion started by: msb65
3 Replies

4. UNIX for Dummies Questions & Answers

Zipping the logs of directory

Hi Folks, I have logs at the following location cd /out/app/logs/ now that logs directory contain different types of logs now sometimes i need to do disk clean up activity so i need to zipped the logs can you please advise any command by which all the logs created in this directory are... (2 Replies)
Discussion started by: punpun66
2 Replies

5. AIX

Source IP not in my ftpd debug logs

I have random connections coming into my FTP server, but the source IP is not showing up in my logs. Here is what my logs look for me trying to connect as a "whatever" user that doesn't exist. You can see there is no source IP telling me where this connection came from: Jun 27 10:13:40... (4 Replies)
Discussion started by: kah00na
4 Replies

6. Shell Programming and Scripting

Want to delete the junk files from a directory which are not listed in a TEXT file

Hello Everyone, I want to delete the image files from a directory, which are not listed in a TEXT file. The directory contains large number of image files (in millions) required / not required. I want to delete the image files which are "not required". I have generated a Text file having... (3 Replies)
Discussion started by: Praveen Pandit
3 Replies

7. Shell Programming and Scripting

Deleting 3 days old logs from a directory

As i am working in unix environment so i have an logs that is created by my application at the following location that is /opt/app/glac/current/servers/ops/logs inside the logs directory there are different kinds of logs(that is the file having extension as .log ) have been created... (1 Reply)
Discussion started by: 2015nks
1 Replies

8. UNIX for Dummies Questions & Answers

find command on a empty directory - bad status

when I run the following command in AIX (bash), find ./* I get the following error. find: bad status-- ./* Thats becasuse, its an empty directory. The same works, when there the directory is not empty. Even though the find deesnt have to rerun any result. My full find command would look... (4 Replies)
Discussion started by: deepakwins
4 Replies

9. UNIX for Dummies Questions & Answers

How to move gz files from one source directory to destination directory?

Hi All, Daily i am doing the house keeping in one of my server and manually moving the files which were older than 90 days and moving to destination folder. using the find command . Could you please assist me how to put the automation using the shell script . ... (11 Replies)
Discussion started by: venkat918
11 Replies

10. Shell Programming and Scripting

-bash: ./p4: /bin/ksh^M: bad interpreter: No such file or directory

I keep getting this error and I am not sure why. -bash: ./p4: /bin/ksh^M: bad interpreter: No such file or directory First I run my makefile and this works fine: goodmain: main.o gcc -o goodmain main.o main.o: main.c gcc -c main.c Then I want to limit my output so I... (11 Replies)
Discussion started by: cokedude
11 Replies
XStoreBytes(3X11)						     MIT X11R4							 XStoreBytes(3X11)

Name
       XStoreBytes, XStoreBuffer, XFetchBytes, XFetchBuffer, XRotateBuffers - manipulate cut and paste buffers

Syntax
       XStoreBytes(display, bytes, nbytes)
	  Display *display;
	  char *bytes;
	  int nbytes;

       XStoreBuffer(display, bytes, nbytes, buffer)
	  Display *display;
	  char *bytes;
	  int nbytes;
	  int buffer;

       char *XFetchBytes(display, nbytes_return)
	  Display *display;
	  int *nbytes_return;

       char *XFetchBuffer(display, nbytes_return, buffer)
	  Display *display;
	  int *nbytes_return;
	  int buffer;

       XRotateBuffers(display, rotate)
	  Display *display;
	  int rotate;

Arguments
       buffer	 Specifies the buffer in which you want to store the bytes or from which you want the stored data returned.

       bytes	 Specifies the bytes, which are not necessarily ASCII or null-terminated.

       display	 Specifies the connection to the X server.

       nbytes	 Specifies the number of bytes to be stored.

       nbytes_return
		 Returns the number of bytes in the buffer.

       rotate	 Specifies how much to rotate the cut buffers.

Description
       Note that the cut buffer's contents need not be text, so zero bytes are not special.  The cut buffer's contents can be retrieved later by
       any client calling

       can generate a error.

       If the property for the buffer has never been created, a error results.

       can generate and errors.

       The function returns the number of bytes in the nbytes_return argument, if the buffer contains data.  Otherwise, the function returns NULL
       and sets nbytes to 0.  The appropriate amount of storage is allocated and the pointer returned.	The client must free this storage when
       finished with it by calling Note that the cut buffer does not necessarily contain text, so it may contain embedded zero bytes and may not
       terminate with a null byte.

       The function returns zero to the nbytes_return argument if there is no data in the buffer.

       can generate a error.

       The function rotates the cut buffers, such that buffer 0 becomes buffer n, buffer 1 becomes n + 1 mod 8, and so on.  This cut buffer num-
       bering is global to the display.  Note that generates errors if any of the eight buffers have not been created.

       can generate a error.

Diagnostics
       The server failed to allocate the requested resource or server memory.

       A value for an Atom argument does not name a defined Atom.

       Some argument or pair of arguments has the correct type and range but fails
		 to match in some other way required by the request.

       Some numeric value falls outside the range of values accepted by the request.
		 Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument
		 defined as a set of alternatives can generate this error.

See Also
       XFree(3X11)
       X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys

																 XStoreBytes(3X11)
All times are GMT -4. The time now is 07:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy