<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/tt/onlinemanual/100012" xml:lang="en">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">To add a shell command to a job</Title>
		<Keyword ContextSensitive="No"><Level1>Shell command</Level1>
			<Level2>add a shell command to a job</Level2>
		</Keyword>
		<Keyword ContextSensitive="No"><Level1>Job</Level1>
			<Level2>add a shell command to a job</Level2>
		</Keyword>
	</Header>
	<GeneralSection><Paragraph class="Default">You can link a <Link href="/baanerp/tt/glossary/glossary#100026" role="glossary">shell command</Link> to a <Link href="/baanerp/tt/glossary/glossary#000025" role="glossary">job</Link> in the <Link href="/baanerp/tt/aad/ttaad5205m000" role="session">Add Shell Command to Job (ttaad5205m000)</Link> session. You can also link a command file (cmd file), or a Visual Basic script. You must enter the name and, if desired, the parameters and/or arguments of the command or script in this session. Then you must specify a return value, which is sent to the job. Finally, you can choose the <GUIRef href="" role="manual">Add to Job</GUIRef> command to link the command or script to a job. If you select this option, <GUIRef href="/baanerp/tt" role="package">Tools</GUIRef> starts the <Link href="/baanerp/tt/aad/ttaad5102s000" role="session">Add Session to Job (ttaad5102s000)</Link> session. Here, you can specify the name of the job to which the command or script is linked.</Paragraph>
		<Paragraph class="Default">Repeat this procedure for each command or script that must be added to a job.</Paragraph>
		<Note><SectionTitle>
                                 Note
                              </SectionTitle>
			<Paragraph class="Default">If a command or script generates output which needs to be viewed, the output can be redirected to a file or printer by means of the output redirection facility.</Paragraph>
		</Note>
	</GeneralSection>
</ManualTopic>
